Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is desktop app running?
Message
From
22/10/1997 20:35:02
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055034
Message ID:
00056213
Views:
21
>>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)

Gearld

Thanks for the reply. I have used the FindWindow API function with success.

Cheers
Campbell
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform