Desktop Automation
The Desktop Automation toolbox controls the desktop as a person would. It moves and clicks the real mouse, drags along paths, presses and types keys, reads whether a key is down, finds windows by title or process, focuses, moves, resizes and closes them, reads each display's size and scale, and asks the desktop to open or reveal a file (Open, Reveal).
Use it to automate work in programs that have no API: fill a form, click through a dialog, or arrange windows. Read the safety notes first: a graph that moves the pointer takes over your computer while it runs.
- Included in: Divooka Explore and Divooka Compute Standard. In Compute, start a document from the Desktop Automation workload, or add the Desktop Automation reference with Add reference (
Ctrl+Shift+L). - Maturity: Preview · Support: Tier 2 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → Desktop Automation, or search for a node withCtrl+Space. - Examples and reference:
Ctrl+Shift+E→ Automation > Desktop · node reference
New to graphs? Start with Your first program.
Example: draw in a paint program
Open Automation > Desktop (Ctrl+Shift+E) and read its description before you run it. It writes random words into a paint program you have already opened, maximized and given the pencil, by tracing the words with a stroke font and driving the pointer along the strokes with the left button held. A full-screen countdown in large red text comes first. Escape stops it at any point: during the countdown and while it draws. A stopped run releases the mouse button where it is and brings the editor back.
To automate your own task: find the window with Find Windows By Title, Focus Window, then use Click Mouse At and the keyboard nodes, with waits in between so the program can keep up.
Tips and limits
- Always have a way out. Read Escape between steps, as the example does, so you can stop a run that goes wrong.
- Coordinates are screen pixels. Display scale changes them; Display Info gives each display's bounds and scale factor.
- Check support first. Is Supported and Platform Name say whether input emulation works on this computer.
What is in the toolbox
| Category | Some of its nodes |
|---|---|
| Macro Automation | Activate Window, Click Mouse, Click Mouse At, Close Window and 48 more |
| Screen Rectangle | Make Screen Rectangle, Contains, Deconstruct, Equals and 18 more |
| Desktop Window | Make Desktop Window, Deconstruct, Equals, Bounds and 11 more |
| Display Info | Make Display Info, Deconstruct, Equals, Bounds and 9 more |
| Screen Point | Make Screen Point, Deconstruct, Equals, Get X and 7 more |
| Native Shell | Is Supported, Open, Reveal |
See also
- Desktop Automation node reference
- Methodox Action Maker - write automation as rows instead of a graph.
- Toolboxes - every other toolbox.