After a fresh reboot, it doesn't work, but if I reload it, the script works flawlessly.
It works perfectly on windows 10, and this problem appears after I install Windows 7 (x64, with latest autohotkey version).
Can you tell me how to fix this?
I think one way to work around that is add some line to make the script reloads itself once?
Sorry for my bad English.
Thanks!
Code: Select all
#If MouseIsOver("ahk_exe SumatraPDF.exe")
WheelUp::send +{Space}
WheelDown::send {Space}
F12::send {F1}
^y::send {F3}
#If
MouseIsOver(WinTitle) {
MouseGetPos,,, Win
return WinExist(WinTitle . " ahk_id " . Win)
}