Code: Select all
^r::
if( ! WinActive( "ahk_exe WINWORD.EXE" ) )
{
SendInput, ^r
return
}
Run, ...
return
Code: Select all
^r::
if( ! WinActive( "ahk_exe WINWORD.EXE" ) )
{
SendInput, ^r
return
}
Run, ...
return
Code: Select all
#InputLevel 1
^r::
if( ! WinActive( "ahk_exe WINWORD.EXE" ) )
{
SendInput, ^r
return
}
Run, ...
return
https://www.autohotkey.com/docs/Hotkeys.htm#Symbols wrote:$
This is usually only necessary if the script uses the Send command to send the keys that comprise the hotkey itself, which might otherwise cause it to trigger itself. [...]
Thank you, $ is another option!gregster wrote: ↑10 Nov 2019, 16:59Usually, the $ modifier should suffice:https://www.autohotkey.com/docs/Hotkeys.htm#Symbols wrote:$
This is usually only necessary if the script uses the Send command to send the keys that comprise the hotkey itself, which might otherwise cause it to trigger itself. [...]
Users browsing this forum: Bing [Bot], bobstoner289, Google [Bot] and 298 guests