First of all thank you for this wonderful piece of software, it's a true lifesaver.
I have created a few simple scripts to use mouse clicks as triggers for keypresses for specific apps. But I have encountered a problem. Despite the #IfWinActive condition, the script is still triggered even if the mouse is outside the window while it remains active.
here is an example:
Code: Select all
#IfWinActive ahk_class IrfanView
MButton::
Send {Enter}
return
Enter::
Send {t down}{t up}
return
LButton::
If (A_TimeSincePriorHotkey<400) and (A_TimeSincePriorHotkey<>-1)
Send {t down}{t up}
return
#IfWinActive ahk_class IrfanViewThumbnails
Enter::
Send {t down}{t up}
return
#ifWinActive ; everything beneath it will work on all windows
any help will be appreciated.