Pseudo Code:
Send "L" once if XButton1 is pressed
Hold down "O" if "XButton1" is held down
Send "L" 3 times if "XButton1" is released
Code: Select all
xbutton1::
send {l}
while getKeystate(xButton1) = 1 {
send {o}
}
if getKeystate(xButton1) = 0
send {l 3}
return