Findwindow
BlitzPlus Forums/BlitzPlus Programming/Findwindow| 
 | ||
| Hi, I'm trying to close a powerpoint presentation from within BlitzPlus. It seems quite easy using Findwindow and Sendmessage. My problem is that Findwindow requires both a classname and title/windowname. like: hndl = findwindow ("PP11FrameClass", "Microsoft Powerpoint - [presentation1]" )Now I would like blitz to close any powerpoint presentation without specifying a title/presentation. But: hndl = findwindow ("PP11FrameClass", 0)or hndl = findwindow ("PP11FrameClass", "" )returns 0 [no handle]. Does anyone know how to tackle this? | 
| 
 | ||
| You are not passing a null value. Use the decls below to do it. .lib "user32.dll" FindWindow%( class$,Text$ ):"FindWindowA" FindWindowByClassname%( class$,thenull% ):"FindWindowA" | 
| 
 | ||
| Excellent - it does the job! |