Returns the mouse button that was used to activate the running macro


See also Macro functions.

Signature:

button = GetRunningMacroButton()

Returns:

  • button - Name of the mouse button used to activate the macro; always "LeftButton" if the macro was triggered by a key binding (string)
    • Button4
    • Button5
    • LeftButton
    • MiddleButton
    • RightButton