Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is desktop app running?
Message
 
To
16/10/1997 17:39:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055034
Message ID:
00055057
Views:
20
>How does one determine if a window exists on the WINNT desktop or if an app is running from within VFP?
>Cheers
>Campbell

If you know the title of the main window you looking for, try this:

DECLARE INTEGER FindWindow ;
IN WIN32API ;
STRING cNull, ;
STRING cWinName

TitleOfTheScreen = 'title'

IF !FindWindow( 0, TitleOfTheScreen ) > 0
**the windows does not exist!
ENDIF


HTH :0)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform