In MSword I would like to set
`1
to be a key sequence to trigger a script
but I also have other scripts in MSword with the hotkeys
1
and key sequence
11 ; (one pressed twice fast)
the code goes like this
; The following hotkeys work only if MS-WORD is the active window:
#If WinActive("ahk_exe WINWORD.EXE") ; (1)
1::
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
How can I set the `1 keysequence trigger without interfere with the other hotkeys???
Thanks Advanced.
Best Answer