Findwindow

BlitzPlus Forums/BlitzPlus Programming/Findwindow

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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?