Mouse gestures to supermaximize, resize and move active wind

Suggestions, feature requests and bug reports.
Post Reply
salvarori
Posts: 3
Joined: Dec 7th, ’16, 08:58

Post by salvarori » Dec 7th, ’16, 09:19

Hello,

I use two screens and I want to easy do several actions with the active window that I'm working with. For example, I want to move the active window from screen 1 (left) to screen 2 (right) using a mouse gesture as holding down Ctrl key combined with a right gesture (holding down left mouse button combined with an simple movement to the right). I also need to supermaximize the active window to fill the two screens (for example with Ctrl + right + up gesture). It will also be interesting snap the active window right (it can be done with Win + Right but to do it I need to release the mouse and I prefer to use a mouse gesture). How can I do all this?.

Thanks.
User avatar
Tom
Posts: 796
Joined: Nov 24th, ’15, 23:39

Post by Tom » Dec 7th, ’16, 20:17

You can simulate any Windows shortcuts with FastKeys so the simplest would be to do something like this:

- Set Gestures shortcut to Ctrl + RButton (Preferences/Gestures),
- add a new Gestures item, record your gesture,
- set Type to Send
- set Command to execute Win + Right shortcut

Code: Select all

#{Right}
You can prepare other gestures in similar way.
salvarori
Posts: 3
Joined: Dec 7th, ’16, 08:58

Post by salvarori » Dec 9th, ’16, 08:57

Hi Tom,

thanks for your help. What is the command to send to supermaximize a window to fill the two screens?.
User avatar
Tom
Posts: 796
Joined: Nov 24th, ’15, 23:39

Post by Tom » Dec 10th, ’16, 19:12

Could you try the code below? It should expand an active window.

Type: Command

Code: Select all

WinGetActiveTitle, Title
WinRestore, %Title%
SysGet, X1, 76
SysGet, Y1, 77
SysGet, Width, 78
SysGet, Height, 79
WinMove, %Title%,, X1, Y1, Width, Height
salvarori
Posts: 3
Joined: Dec 7th, ’16, 08:58

Post by salvarori » Dec 12th, ’16, 08:13

Many thanks Tom, it works fine.
Post Reply