Re: how to determine if an app is running
- From: "Olaf Doschke" <olaf.doschke@xxxxxxxxxxxxxxxx>
- Date: Sun, 21 Sep 2008 15:14:10 +0200
Hi Brad,
you're looking for calls to list all active processes
like the Task manager does. This can be done by
WMI for example.
Find running CALC.exe processes:
oWMI = GETOBJECT('winmgmts://')
cQuery = "select * from win32_process where name='calc.exe'"
oResult = oWMI.ExecQuery(cQuery)
? oResult.Count
FOR EACH oProcess IN oResult
? oProcess.ProcessId NEXT
With the processID you should be able to find and
activate it's window.
The other thing you mentioned, eg pulling each
window to top and checking if it's the one wanted-
I think you found examples sing enumwindows or
FindWindwo. I don't think the codes you normally
find activate all windows. But one disadvantage
is they find an app by it's window title. In germany
for CALC exe that is "Rechner" for example, not
Calc or Calculator.
Bye, Olaf.
.
- Follow-Ups:
- Re: how to determine if an app is running
- From: Brad
- Re: how to determine if an app is running
- References:
- how to determine if an app is running
- From: Brad
- Re: how to determine if an app is running
- From: Tom Libby
- Re: how to determine if an app is running
- From: Brad
- Re: how to determine if an app is running
- From: JayB
- Re: how to determine if an app is running
- From: Brad
- how to determine if an app is running
- Prev by Date: Re: title bar hwnd
- Next by Date: Grid scroll freeze up
- Previous by thread: Re: how to determine if an app is running
- Next by thread: Re: how to determine if an app is running
- Index(es):
Relevant Pages
|