Skip to content

Virtual Desktop Changed

  • Trigger
  • Apps & windows
  • Advanced mode

Starts the macro when you switch to another virtual desktop (Win+Tab, Ctrl+Win+Left or Right), or only to one desktop.

In the editor, press Space on the canvas to add a step, then open Triggers > Apps & windows, or type its name. In Simple mode it's under Show all, and search finds it.

Settings

Desktop

Text

Its number (1 is the first) or its name. Empty: any desktop.

Starts as: empty

Outputs

Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.

Virtual Desktop Changed outputs
OutputGivesWhat it is
NumberA screen positionThe desktop switched to; 1 is the first.
NameTextIts name, or Desktop 2 when it has none.
Previous numberA screen positionThe desktop switched from.

Good to know

  • Wait for Event can wait for it in the middle of a macro, with the same settings.

More in Apps & windows