Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if another Windows app is running?
Message
From
04/05/1999 15:43:40
 
 
To
04/05/1999 14:48:21
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00215085
Message ID:
00215115
Views:
30
>Hi,
>
>I have a VFP 5.0 app which sends reports to a fax server. The fax server, FACSys, needs its 'fax monitor' running on the client work station.
>
>Usually the user starts the 'fax monitor' on his workstation at the beginning of the day using an icon on the desktop.
>
>Is there a way of telling if the fax monitor is running from within my VFP 5.0 application? If it is not on, can the app turn it on?
>
>Thanks in advance.
>
>Paul de Niverville

One wayis to use the API FindWindow() function. There is probably an entry in the FAQ about this. You can use the following declaration and code:

DECLARE INTEGER FindWindow in win32api integer,string
nWinHandle = FindWindow(0,"Window Caption to Find")

nWinHandle will contain the window handle number if found, 0 if not found.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform