Skip to content

Instantly share code, notes, and snippets.

@Bamux
Created July 2, 2018 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bamux/a425d5668ba53e2aea2dccf492bf2b62 to your computer and use it in GitHub Desktop.
Save Bamux/a425d5668ba53e2aea2dccf492bf2b62 to your computer and use it in GitHub Desktop.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Key01 := 0
status := 0
loop {
if (Key01 = 1){
Send 1
}
if (Key01 = 3){
Send 3
}
if (Key01 = 5){
send 5
}
if (Key01 = 6){
Send 6
}
Sleep 70
}
1Joy17::
Key01:=0
return
1Joy18::
Key01:=0
return
1Joy19::
Key01:=0
return
1Joy20::
Key01:=0
return
1Joy5::
Key01:=0
return
2Joy17::
Key01:=0
return
2Joy18::
Key01:=0
return
2Joy19::
Key01:=0
return
2Joy20::
Key01:=0
return
2Joy5::
Key01:=0
return
$Numpad1::
Key01 := 1
return
$Numpad2::
Key01 := 2
Send 2
return
$Numpad3::
Key01 := 3
return
$Numpad4::
Key01 := 4
Send 4
return
$Numpad5::
Key01 := 5
send 5
return
$Numpad6::
Key01 := 0
send 6
return
$Numpad7::
Key01 := 7
Send 7
return
$Numpad8::
Key01 := 8
Send 8
return
$Numpad9::
Key01 := 9
Send 9
return
$F5::
Key01 := 0
Send {F5}
return
$F7::
Key01 := 0
Send {F7}
return
$F9::
Key01 := 0
Send {F9}
return
$F12::
Key01 := 0
Send {F12}
return
$MButton::
Key01 := 0
Send {MButton}
return
$Tab::
Key01 := 0
Send {Tab}
return
Pause::
Suspend
Pause,,1
SoundBeep
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment