Code: Select all
;VARIABLES
Var := 1
;GUI
Gui, New,, Silent Mouse Controller
Gui, Add, Button, w100 gLMouseB vLMouseControl, 1 ; The button is added
Gui, Show
Return
;FUNCTIONS
LMouseB: ; When the button is pressed, Var will change to the next input
Input, Var, L1 V
GuiControl, Text, LMouseControl, % Var
Hotkey, %Var%, Func ; Then that input becomes a hotkey
Return
Func: ; And the hotkey does the thing
MouseClick, Left
return
;die lol
GuiClose:
ExitApp
Esc::
ExitApp