shortcut to stop robotask

Post comments and suggestions for RoboTask here

shortcut to stop robotask

Postby rgonzalez » Wed Sep 05, 2012 6:21 pm

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.
rgonzalez
 
Posts: 40
Joined: Fri Nov 26, 2010 10:19 am

shortcut to stop robotask

Postby Oleg » Thu Sep 06, 2012 5:40 am

There is Stop button for this purpose:


It stops selected task. The second click causes unconditional termination of the task.
Oleg
Site Admin
 
Posts: 2658
Joined: Thu Jan 01, 1970 1:00 am

shortcut to stop robotask

Postby rgonzalez » Thu Sep 06, 2012 5:34 pm

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.
rgonzalez
 
Posts: 40
Joined: Fri Nov 26, 2010 10:19 am

shortcut to stop robotask

Postby Oleg » Fri Sep 07, 2012 6:00 am

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.
Oleg
Site Admin
 
Posts: 2658
Joined: Thu Jan 01, 1970 1:00 am

Re: shortcut to stop robotask

Postby Hallstead » Thu Jul 16, 2020 11:02 pm

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.
Hallstead
 
Posts: 1
Joined: Thu Jul 16, 2020 10:54 pm

Re: shortcut to stop robotask

Postby Oleg » Mon Jul 20, 2020 11:16 am

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
Oleg Yershov
Oleg
Site Admin
 
Posts: 2658
Joined: Thu Jan 01, 1970 1:00 am

Re: shortcut to stop robotask

Postby Rukbunker » Tue Sep 22, 2020 2:56 pm

Got this already for some years and it proofed itself many times. In our case: Control+F12 is the kill switch :D

Capture.PNG
Screenshot
Capture.PNG (18.69 KiB) Viewed 4153 times
Rukbunker
 
Posts: 144
Joined: Mon Feb 22, 2016 4:06 pm
Location: Netherlands


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron