Code: Select all
WinActive ("ahk_exe Game.exe")
#SingleInstance
RAlt:: {
While GetKeyState(ThisHotkey, "P")
Send "{Space}"
sleep 50
Send "{Space}"
sleep 50
Send "{RButton down}"
sleep 50
Send "E"
sleep 50
Send "["
sleep 100
Send "]"
sleep 50
Send "{RButton up}"
sleep 30
Send "{LButton down}"
sleep 100
Send "{LButton up}"
}
return