Move Fullscreen Window Macro (v11.0.4)

Here is a short macro I wrote to move a full-screen window from my laptop to an external display. It works for me but it does depend on the name of the display. This could be improved on using the SCREENCOUNT and SCREENINDEX variables as is done in A Simple Macro to Move Window to External Display and Back Again but I was just happy to have a quick solution that worked for me.

Move to 4K Fullscreen Macro (v11.0.4)

Move to 4K Fullscreen.kmmacros (4.1 KB)

Move to 4K Fullscreen.kmmacros (4.1 KB)

You can get round that, to some extent anyway, by matching the menu item by regular expression -- the first item that matches will be the one chosen. Start the field's text with a ^ to activate "match-mode":

So this:

...will move the window from my main to external and from my external to main even though I also have a sidecar display listed:

...because the target displays are always the first match.

In this case I could be more precise by including the shared "B" as well, or could go even further and state that must be followed by a "u" or "e":

...and so on.

2 Likes

Ah, nice. Thanks for pointing that out.