Page 1 of 1

shortcut to stop robotask

Posted: Wed Sep 05, 2012 6:21 pm
by rgonzalez
Would be nice if you could stop all robotask tasks using a key combination or something. When you are are executing a task sometimes you have a lot of instruction that goes to an specified window. When you are testing your task, it becames really annoying trying to stop robotask while you are fighting with the fixed window protection.

shortcut to stop robotask

Posted: Thu Sep 06, 2012 5:40 am
by Oleg
There is Stop button for this purpose:


It stops selected task. The second click causes unconditional termination of the task.

shortcut to stop robotask

Posted: Thu Sep 06, 2012 5:34 pm
by rgonzalez
yes, but when the task is running and you have something like send keystrokes to a windows with fixed window (protect against casual window switching) you wont be able to open robotask window.

shortcut to stop robotask

Posted: Fri Sep 07, 2012 6:00 am
by Oleg
Ok, I wrote this into our ToDo. Probably we'll devise
something.

One advise right now:
You can make the task which stops your main task and attach
Hot-Key trigger for it.

Re: shortcut to stop robotask

Posted: Thu Jul 16, 2020 11:02 pm
by Hallstead
I have a task dedicated for stopping all running tasks. It uses the following vb script:

Code: Select all

cnt = RoboTaskApp.TaskCount
for i=0 to cnt-1 step 1
  nam = RoboTaskApp.TaskInfoExtname(i)
  if nam <> "Task3" Then
    logmessage("Stop task " + nam)
    RoboTaskApp.StopTask(nam)
  end if
next
Task3 is the external name of the task. It loops through all your tasks and stops them all except for this task.

Re: shortcut to stop robotask

Posted: Mon Jul 20, 2020 11:16 am
by Oleg
I modified the script
See below. It is universal

Code: Select all

cnt = RoboTaskApp.TaskCount
SelfName = RoboTaskApp.ExpandText("{TaskExtName}")
for i=0 to cnt-1 step 1
  nam = RoboTaskApp.TaskInfoExtname(i)
  if nam <> SelfName Then
    logmessage("Stop task " + nam)
    RoboTaskApp.StopTask(nam)
  end if
next

Re: shortcut to stop robotask

Posted: Tue Sep 22, 2020 2:56 pm
by Rukbunker
Got this already for some years and it proofed itself many times. In our case: Control+F12 is the kill switch :D
Screenshot
Screenshot
Capture.PNG (18.69 KiB) Viewed 8203 times