Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if an application is running
Message
 
À
02/06/2005 14:10:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01019492
Message ID:
01019569
Vues:
24
Maybe:
declare integer FindWindow in win32api integer nullpointer, string cwindow_name

procedure IsApplicationWindowOpen(lcApplicationTitleBar)
lnRetVal=FindWindow(0,lcApplicationTitleBar)
return lnRetVal>0
THere is also a corresponding showwindow. Test it from command useing "Microsoft Visual FoxPro:
?IsApplicationWindowOpen("Microsoft Visual FoxPro")


>Hi,
>
>Is thre a way to determine if an application is running, by "part" of its caption?
>
>I'm using Declare Long FindWindowA In Win32API String Class, String Title to get that information when I know the entire app caption, but there is a means to get it like that:
>
>_Screen.Caption = "SystemName - ModuleName - Title of App Running"
>
>that is, just by the left part (in bold) of _Screen.Caption?
>
>Regards,
>
>Fernando
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform