All pastes #2130890 Raw Edit

Mine

public text v1 · immutable
#2130890 ·published 2012-03-21 12:38 UTC
rendered paste body
~*LButton::
  if (GetKeyState("1", "P"))
    GoSub, Timer_1_Reset
  if (GetKeyState("2", "P"))
    GoSub, Timer_2_Reset
  if (GetKeyState("3", "P"))
    GoSub, Timer_3_Reset
  if (GetKeyState("4", "P"))
    GoSub, Timer_4_Reset
  if (GetKeyState("5", "P"))
    GoSub, Timer_5_Reset
  Timer_Hotkey := 0
return

#If ((WinActive("ahk_group RS")) && (WinExist("Timer")))

*1::
*2::
*3::
*4::
*5::
  Timer_Hotkey := RegExReplace(A_ThisHotkey, "^\*(\d)$", "$1")
  KeyWait, %Timer_Hotkey%
  if (Timer_Hotkey)
    Send, %Timer_Hotkey%
return