Docs

RunMacro Documentation

Create your first robot, then go further as needed.

Clear step-by-step guides to create, run, and improve robots for repetitive computer work.

Docs Mouse Smart Toggle Checkbox
☑️ Mouse

Automate Desktop Checkbox & Radio Toggling (Smart Toggle) in RunMacro

Smart Toggle Checkbox sets definitive Check, Uncheck, or Toggle states on desktop CheckBoxes and RadioButtons via Windows UI Automation.

Prerequisites#

  • Target desktop application displays the target CheckBox or RadioButton.

Supported modes#

  • Desktop Mode — Interacts directly via UIA TogglePattern without requiring cursor movement.

What it does#

The Smart Toggle Checkbox command sets definitive states for CheckBoxes, RadioButtons, or ToggleSwitches in desktop apps using UIA TogglePattern.Toggle(). It eliminates the hazard of blind clicking (where clicking an already-checked box inadvertently unchecks it) by offering explicit idempotent operations: Check, Uncheck, or Toggle.

Screenshots & video#

RunMacro Smart Toggle Checkbox command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Smart Toggle Checkbox command in RunMacro.

When to use it#

  • Guaranteeing that 'I agree to the terms' checkboxes are explicitly checked in registration flows.
  • Unchecking bundled software or telemetry checkboxes in automated application setup wizards.
  • Activating 'Remember me' or 'Launch on startup' toggles in desktop administration tools.
  • Configuring standardized computer settings based on automated audit checklists.

When not to use it#

  • Web browser checkboxes (use Smart HTML).
  • Standard command buttons (use Smart Click).

Configuration steps#

  1. In RunMacro, select the Mouse › Smart Toggle Checkbox command.
  2. Click 🎯 Pick Element and hover over the target Checkbox or RadioButton to pick.
  3. Choose the Action: Check, Uncheck, or Toggle.
  4. Configure Timeout (ms) for control resolution (default 2000ms).
  5. Click Save to insert the command into your workflow.

Every option explained#

🎯 Pick Element#

Interactive target picker overlay to capture CheckBox UIA identification properties.

Action#

Target state operation: check (ensures checked), uncheck (ensures unchecked), toggle (inverts current state).

Timeout (ms)#

Maximum time to locate and interact with the toggle control (default 2000ms).

Expected result#

The checkbox or radio control is set definitively to the requested state.

Real example#

Example: Ensure 'Remember credentials' is always checked#

  1. Add a Smart Toggle Checkbox command.
  2. Pick the 'Remember Login' checkbox on the application login dialog.
  3. Set action to Check.
  4. During execution, if unchecked it activates; if already checked it safely remains checked without flipping.

Limitations and failure cases#

  • Custom graphic toggles lacking UIA TogglePattern support require Find Image paired with Click.

Tips & common mistakes#

Prefer explicit Check or Uncheck over Toggle to make workflows idempotent across repeated runs.
Checking a RadioButton within a mutual RadioGroup will automatically deselect peer options per standard Windows behavior.

Verification details#

  • commands/smart_desktop_toggle.py · verified 2026-09-30
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.