Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining if an application is running
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01019492
Message ID:
01019585
Views:
15
Ooops! Is what you were doing before - or, is it a different function?I noticed your return was a long as opposed to an interger. The first argument was a string as opposed to an integer!

There might be some alternatives from drilling this site:
http://www.news2news.com/vfp/?group=-1&function=39




>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
Reply
Map
View

Click here to load this message in the networking platform