Page 1 of 1

Monitor Running Programs

Posted: Tue Sep 04, 2012 4:42 pm
by lytsty
Hi,

I want to set up a task that when triggered checks to see
if a program is running and if it's not launches it.

Is it possible to do this?

My reasoning behind this, is that the condition for the
task occurs frequently and so robotask keeps trying to
launch the program even when it's already running.

Any help with this issue is greatly appreciated!

Monitor Running Programs

Posted: Wed Nov 28, 2012 1:33 pm
by dellchen
You can use the window changed caption of "wait for Window"
,Watch for window changed caption (if you don't know the
caption ,you can use the variables of "Question Dialog"
setting the expression as following   CurrentWindowClass=
{CurrentWindowClass}

May the information can help you.

Monitor Running Programs

Posted: Wed Nov 28, 2012 2:06 pm
by Oleg
Look at {IsProcessExists()} system variable.

Algorithm will be such:

if {IsProcessExists(MyApplication.exe)} = False then
   Run program MyApplication.exe
End If

Such task will run application only if it doesn't exist in memory.