How come some time ahk doesn't work
Posted: 21 Sep 2019, 09:20
This applies to most scripts, it seems sometimes a script doesn't work. and I'd have to click the taskbar, then it works. Is it a focus thing?
Let's help each other out
https://www.autohotkey.com:443/boards/
https://www.autohotkey.com:443/boards/viewtopic.php?f=76&t=68195
Code: Select all
#d::Run, C:\Users\A\Dropbox
Code: Select all
~WheelUp::mouseWheelVolume("+4")
~WheelDown::mouseWheelVolume("-4")
mouseWheelVolume(step)
{ mouseGetPos,mx,my,wnd
wingetClass,cls,ahk_id %wnd%
if cls=Shell_TrayWnd
{ SoundSet %step%
soundSet 0,,mute
soundGet vol
ifInString,vol,.
stringMid,vol,vol,1,% inStr(vol,".")-1
tooltip, Volume:%vol%`%,% mx+8,% my+8,19
setTimer removeVolumeTip,2000
}
return
removeVolumeTip:
tooltip,,,,19
settimer removeVolumeTip,OFF
return
}
#MaxHotkeysPerInterval 200