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
Monitor Running Programs
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.
,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
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.
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.