Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Forked from anonymous/gist:8484415
Last active January 3, 2016 15:39
Show Gist options
  • Save TLMcode/8484648 to your computer and use it in GitHub Desktop.
Save TLMcode/8484648 to your computer and use it in GitHub Desktop.
KeyArray := ["e","r","t"]
PgUp::
i++
Hotkey % Key := KeyArray[ Mod( i-1 , KeyArray.MaxIndex() )+1 ], % "Slabel_" i, on
Return
PgDn::
Hotkey % Key, % "Slabel_" i, off
If ( i = KeyArray.MaxIndex() )
i := 0
Return
Slabel_1:
Send {p Down}
KeyWait %A_ThisHotkey%
Send {p Up}
Return
Slabel_2:
Msgbox do something else
Return
Slabel_3:
Msgbox do yet again somethingp
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment