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

Cool!

BTW, i don't know how to pronounce my name the way you write it...
Sound realy weird! :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
Reply
Map
View

Click here to load this message in the networking platform