>I need to check if an application is running called questpdm.exe
>
>My first try was to use:
>
>DECLARE INTEGER FindWindow IN WIN32API INTEGER, STRING
>lnHandle = FindWindow(NULLPOINTER, "QuestPDM")
>
>But the problem is the title bar contains
>"QuestPDM - BrandName - UserName"
>
>So this doesn't work.
>
>Is there a way to check running tasks for any occurances of questpdm.exe
>or a way to do the above check on a substring of the actual title or
>perhaps a better way to detect of the application is running. There could be several occurances of the same application.
Try
"Is a Windows Application Running?". It's not case sensitive and only the known portion of the window's title bar is required.
George
Ubi caritas et amor, deus ibi est