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