Desktop Automation (DA)
Analyse, recognise, and control mouse and keyboard inputs to automate processes in desktop applications
Last updated
Analyse, recognise, and control mouse and keyboard inputs to automate processes in desktop applications
Last updated
Desktop Automation (DA) is the training process for EMILY to analyze, recognize, and control mouse and keyboard inputs to automate processes in desktop applications. Please note that the computer screen settings on the system where DA automation skills are deployed (e.g., resolution, color depth, text scaling) should match the settings of the computer used for training. It's recommended to train the skills directly on the computer where automation will be deployed and avoid any interference with the mouse and keyboard during the execution of automation skills.
Clicking "OPEN TRAINER UI" will launch the training mode panel for designing DA processes directly on your local machine. Alternatively, you can use another computer on the same network to access the Trainer URL and perform remote process design:
When the training mode panel appears in the upper right corner of the screen, it's recommended to minimize the EMILY main Window and the WAP window. This allows you to free up screen space for the training mode.
The training mode panel has three modes: Live, No-Code, and Low-Code. Live mode is for manually adjusting the desktop or applications. No-Code mode involves using the mouse to generate a menu for selecting instructions for the workflow steps, and ultimately, the instructions will be written into the code editor area in Low-Code mode. Low-Code mode allows manual adjustments to the code generated by No-Code mode for maximizing design flexibility.
In Live mode, you can freely adjust the desktop to the desired state at the beginning of the workflow. Then, click the snapshot button to obtain a screen snapshot for No-Code mode. You can also use the shortcut keys Ctrl/Cmd+0 to take a quick snapshot, or Ctrl/Cmd+5 to take a delayed 5-second snapshot.
In No-Code mode, you can single-click with the mouse to bring up a menu and choose the step command you want to generate, such as OPEN FILE, INPUT TEXT, SEND KEYS, SLEEP, COPY XY, CLICK LEFT, CLICK RIGHT, and more. For the OPEN FILE command, you can either double-click a specified file with the mouse to launch the associated application or choose to start an application by directly executing its executable file.
Once the step command is generated in No-Code mode, a reminder will appear as shown in the figure below to indicate that the command has been generated:
You can switch to Low-Code mode at this point to review and adjust the generated code:
In any mode, clicking the ▶︎ execution button on the training mode panel will automatically switch EMILY to the Live mode and start executing commands in the specified order. You can stop the execution by clicking the ■ stop button or pressing Shift+ESC:
You can then take another snapshot of the screen, switch back to No-Code mode, and continue adding the next step command. For example, you can use the mouse to drag an area of the button on the screen, release the mouse to bring up the menu, and select the next step command you've added:
As the number of steps or commands gradually increases, you can execute all the commands sequentially using the ▶︎ Execute button on the Training Mode panel at any time. Additionally, you can select a portion of the code in the code editor, and click the RUN SELECTED CODE button above the editor to execute the selected portion of step commands:
After completing all the steps or commands, make sure to commit the code. Since the step commands are added to the TRIAL code area, clicking the Commit button in the Training Mode panel will push them to the FINAL area. You need to commit again to push them back to the DA WAP window:
At this point, clicking the SAVE button will complete the DA WAP process section. If you happen to forget to SAVE, you can open the training mode's workspace. The code that was committed in the FINAL code editing area will be saved in a file named code-final-xxxx.js:
Windows operating system requires Windows 10 64-bit or higher version and Microsoft VC++ library should be installed in advance.
When a DA skill is running, it takes control of the mouse and keyboard. Any manual mouse or keyboard actions during the automation process can potentially disrupt the automation and may lead to errors.
Users should ensure that the input method editor (IME) status matches that during training. Sometimes, the system may automatically switch the input method for different applications, potentially leading to incorrect text input.
Space LeftAlt RightAlt LeftControl RightControl LeftShift RightShift LeftSuper RightSuper
F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12
Num0 Num1 Num2 Num3 Num4 Num5 Num6 Num7 Num8 Num9
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Grave Minus Equal Backspace LeftBracket RightBracket Backslash Semicolon Quote Return Comma Period Slash
Left Up Right Down
Print Pause Insert Delete Home End PageUp PageDown
NumPad0 NumPad1 NumPad2 NumPad3 NumPad4 NumPad5 NumPad6 NumPad7 NumPad8 NumPad9
Add Subtract Multiply Divide Decimal
CapsLock ScrollLock NumLock
--
We are dedicated to improving our content. Please let us know if you come across any errors, including spelling, grammar, or other mistakes, as your feedback is valuable to us! 🤖️⚡️