Skip to content

Move Window to Desktop

  • Action
  • Apps & windows
  • Advanced mode

Moves an app's window to another virtual desktop, or shows it on every desktop. Picks the window by process name, by text in its title, or both; with both empty, the window in front. Continues on Not found when there's no such window, and on Failed when Windows refuses or this version of Windows isn't one MacroWin can do it on yet.

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

Settings

Process name

A program (process name)

The app's executable, e.g. notepad.exe (the .exe is optional). Leave this and Window title contains empty for the window in front.

Starts as: notepad.exe Takes ${variables} and expressions Can come from another step's output

Window title contains

Text

Only windows whose title has this text (any case), e.g. "- Word". Leave it empty for any window of the app.

Starts as: empty Takes ${variables} and expressions Can come from another step's output

Move to

A choice
  • A desktop by number
  • A desktop by name
  • The next desktop
  • The previous desktop
  • Every desktop: Shown on every desktop, as Task View's Show this window on all desktops.
  • Only its own desktop: Stops showing it on every desktop.

Starts as: A desktop by number Can come from another step's output

Desktop

A screen position

1 is the first desktop in Task View.

Starts as: 2 Can come from another step's output

Desktop name

Text

As Task View shows it, e.g. Work.

Starts as: empty Takes ${variables} and expressions Can come from another step's output

Where it continues

  • Out: Continues here when it's done.
  • Not found: Continues here when it isn't found (e.g. the app has no window).
  • Failed: Continues here when it fails; the reason is in the run log.

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.

Move Window to Desktop outputs
OutputGivesWhat it is
DesktopA screen positionThe number of the desktop it's on afterwards; 0 when it's on every desktop.
ErrorTextWhy it failed; empty when it worked.

More in Apps & windows