Mouse Gestures


Mouse Gestures (MG) uses simple sequences of mouse movements to manipulate windows (but not in Win9X). Gestures are only recognised whilst the right button is pressed. The following table describes the components of a gesture.

LMove the mouse to the left NWMove the mouse upwards and to the left LBClick the left button
RMove the mouse to the right NEMove the mouse upwards and to the right MBClick the middle button
UMove the mouse upwards SWMove the mouse downwards and to the left WUMove the wheel up
DMove the mouse downwards SEMove the mouse downwards and to the right WDMove the wheel down
The wheel and/or middle button may not be recognised, depending on your mouse's configuration.

As you move the mouse, a line will be drawn once a stroke has reached the minimum length. If you remain still for a quarter of a second a tooltip will be displayed showing either the name of the gesture (if it's recognised) or the sequence of movements (if it's not). For example, assuming the default configuration, if you formed a square by moving right, down, left and up, the tooltip will end up showing RDLU; however, if you did it as LDRU you would see "Settings". The action associated with the gesture will be performed when the right button is released. If it is not recognised the click is ignored. The gesture can be cancelled and the right click sent as usual by not moving the mouse for a little while before releasing the right button; the right click itself can be cancelled by pressing the left or middle button (before the tooltip disappears).

Predefined Gestures

Scrolling
LBPage down
MBPage up
WDPage right
WUPage left
DAll the way down
UAll the way up
RAll the way right
LAll the way left
Scrolling will work on the window under the cursor. Unfortunately, it does not work with all windows.
Position
USEUMove dialog (see mg.ini)
UDCenter
RLMaximise the width
DUMaximise the height
UR or LDMove to the top-left corner
RD or ULMove to the top-right corner
DR or LUMove to the bottom-left corner
RU or DLMove to the bottom-right corner
LNE or LSEFill the left half
RNW or RSWFill the right half
USW or USEFill the top half
DNW or DNEFill the bottom half
NWFill the top-left corner
NEFill the top-right corner
SWFill the bottom-left corner
SEFill the bottom-right corner
RDL or RULAlign to the left
LDR or LURAlign to the right
DRU or DLUAlign to the top
URD or ULDAlign to the bottom
Repeating one of these will restore the original position and size. They are relative to the desktop by default (except for align); hold down the Windows key to position relative to the window under the cursor.
Window
LRClose
NED or NWDMaximise or restore
SEU or SWUMinimise
        
UL2R or UR2L or 2LRD or 2RLD
Toggle topmost
These apply to the active window by default; hold down the Windows key prior to the right-click to apply to the window under the cursor.
General
SENEMinimise all
NESERestore all
SEUSWConfigure gesture recognition
LDRUOpen mg.ini
RDLDOpen mg.htm
Keys
Win+GToggle gesture recognition
Shift+Win+GReload (update configuration)
Ctrl+Win+GEdit the script
Alt+Win+GExit

Since it's possible that other programs will use the right button for their own purposes, MG can ignore those windows, or even disable itself. Add the title of the window to the appropriate line in mg.ini, or use the "Configure" gesture.

MG also provides two other optional features: it can "debounce" the left button, where rapid consecutive clicks are ignored; and it can make the middle button act as a left double-click. Configure these options in mg.ini.

Gestures can be configured via mg.ini (which describes the process), but if you want to do more than what that is capable of, download AutoHotkey and modify mg.ahk and mg_action.ahk.


Mouse Gestures v2.02 (790k).


Jason Hood.
18 January, 2019.


Main.