Code: Select all
#UseHook
Gui Font, s10, Impact
Gui Add, Text, x195 y10 w170 h26 +0x200 +BackgroundTrans, Option1.
Gui Add, Text, x195 y50 w170 h26 +0x200 +BackgroundTrans, Option2.
Gui Add, Text, x195 y90 w170 h26 +0x200 +BackgroundTrans, Option3.
Gui, Add, Button, x112 y9 w80 h30 -Multi -Wrap gButton1 vTheButton1, &On
Gui, Add, Button, x112 y49 w80 h30 -Multi -Wrap gButton2 vTheButton2, &On
Gui, Add, Button, x112 y89 w80 h30 -Multi -Wrap gButton3 vTheButton3, &On
Gui, Show
Return
Button1:
Started := !Started
If (Started)
GuiControl, , TheButton1, &Off
Else
GuiControl, , TheButton1, &On
Button2:
Started := !Started
If (Started)
GuiControl, , TheButton2, &Off
Else
GuiControl, , TheButton2, &On
Button3:
Started := !Started
If (Started)
GuiControl, , TheButton3, &Off
Else
GuiControl, , TheButton3, &On
Option1:
Loop
{
~RButton::
sendinput {1 down}
sendinput {1 up}
Return
}
return
Option2:
Loop
{
~Space::
sendinput {2 down}
sendinput {2 up}
Return
}
return
Option3:
Loop
{
~LShift::
sendinput {3 down}
sendinput {3 up}
Return
}
return
GuiClose:
ExitApp