Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get window handle
Message
 
To
06/08/2003 07:28:56
Jeffrey Havelock
Skipton Information Group
Leeds, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00817229
Message ID:
00817272
Views:
11
>Hi,
>
>I have a Fox (6.0) application which calls another piece of software by using the standard RUN command. I need to halt the code until this external software has closed itself down, therefore I want to place a timer on my form to check intermitantly for the existence of the software.
>
>Is there a standard API method for checking for existence of an open window external to Fox? All I think I need is to find a function where I can pass the window name and have its file handle returned, or 0/-1 etc. if not found.
>
>Any help appreciated as always.
>
>Regards
>
Jeff,

Even easier would be to use the Windows Script Host's Shell object.
oShell = CREATEOBJECT("WScript.Shell")
oShell.Run(my.exe, 5, .T.) && Normal window wait for termination
Further details may be found in the series of articles the late Ed Rauh and I wrote for the VFUG Newsletter. The article covering the Shell appeared in Oct. 2000. All articles are available on-line at www.vfug.org.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform