if ($answer_counter == 1): ?>
endif; ?>
#If WinActive("ahk_exe WINWORD.EXE")
; SC029 is the scancode of the key "'"
; SC029::
; KeyWait, SC029
; return
SC029 Up::
Send {SC029}
return
; press 1 while you're holding down the "'"-key, to send a
SC029 & 1:: Send a
1::
; press 1 in less than 300 ms after pressing the "'"-key, to send b
If (A_PriorHotKey = "SC029 Up" AND A_TimeSincePriorHotkey < 300)
{
Send {BS}b
return
}
; otherwise:
if 1_presses > 0
{
1_presses += 1
SetTimer Key1, 300
return
}
1_presses = 1
SetTimer Key1, 300
return
Key1:
SetTimer Key1, off
if 1_presses = 2
SendInput, BYE
else
SendInput, HELLOW
1_presses = 0
return
#If