Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining if an application is running
Message
 
To
02/06/2005 14:10:59
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01019492
Message ID:
01019569
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform