Caster icon indicating copy to clipboard operation
Caster copied to clipboard

Snap windows to the left / right reliably

Open seekM opened this issue 6 years ago • 1 comments
trafficstars

I want to move a window to the left / right half side of the screen. I tried the following:

        "window left":
             R(Key("w-up") + Key("w-up") + Key("w-left")),
        "window right":
             R(Key("w-up") + Key("w-up") + Key("w-right")),

It is two times w-up because if the window is already on one half of the screen the window will not be maximized if you do w-up only once. First "window left" works. If I do a "window right" after that the window is in the top left corner and on the right side of the screen all other windows appear and you have to choose one. I expect the window to be on the right side of the screen. Note that the first "window left" sometimes also fails with a similar error. It seems to me that it has to do with how Windows 10 interprets the "windows" key and how quickly you release it. Sometimes this also happens when I do the keystrokes manually and not in a voice command.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

seekM avatar May 26 '19 10:05 seekM

Yes there are number of issues, thanks reporting this.

  1. If the window is maximized it works to either side of the screen as expected.

  2. it also seems to work reliably at the screen is not maximized going to left or right.

  3. However when I have one window open I have to say the command twice (clicking to focus the window) to switch back and forth from right to left or left to right.

LexiconCode avatar May 26 '19 14:05 LexiconCode