What is the use case
Sometimes when you work on bigger projects, when you do test runs, you have to stop the robot in middle.
UiPath provides 2 ways to stop a robot while running in studio.
- click on the Stop button in task bar. (Most of the times, the robot will not give enough time to use mouse to reach the stop button)
- use shortcut (F12) to stop the robot while running. (But it will work only when the studio window is activated.)
It would be an effective solution if there is a global shortcut which allows to stop the robot in middle.
I searched the forum to find if someone has found an easy workaround, but found nothing.
How do you see a solution for the use case?
So I created a small solution myself and thought of sharing it to help others.
Here are the steps
Download the batch file from below link
Place it to a folder in you PC.
Create a shortcut to your desktop
Go to properties of the shortcut file and add a hotkey for the shortcut file.
Press the hotkey whenever you wish to stop the robot.
Note : This batch file will stop the ‘uiRobot.exe’ process, basically it will stop the robot.
Scope: Template, Reusable Component, Custom Activity______