Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if another Windows app is running?
Message
De
04/05/1999 15:43:40
 
 
À
04/05/1999 14:48:21
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, Colombie Britannique, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00215085
Message ID:
00215115
Vues:
29
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform