Nice.
On second thought, I'm not sure how that's any different than the following::
Code: Select all
#If, WinActive("ahk_class TscShellContainerClass")
~Up::
~Down::return
>^Up::SetVolume("+2")
>^Down::SetVolume("-2")
SetVolume(value) {
SoundSet, %value%
SoundGet, volume
Tooltip, % Round(volume)`%
SetTimer, RemoveToolTip, 1000
}
You might just try that. In fact, I just disabled those extra hotkeys and even the script entirely and RCtrl + Up/Down doesn't move my cursor at all, so I'm not sure what's going on. I was able to reproduce your issue (or a similar one) yesterday and, now, I can't reproduce it, so I guess that I have to leave it up to you to test and see what works.
That said, if you find that neither method actually works, try the following, which makes more sense as to why it would do what I originally wanted it to do:
Code: Select all
#If, WinActive("ahk_class TscShellContainerClass")
Up::
Down::
If not GetKeyState("RCtrl", "P")
Send, {%A_ThisHotkey%}
return
>^Up::SetVolume("+2")
>^Down::SetVolume("-2")
SetVolume(value) {
SoundSet, %value%
SoundGet, volume
Tooltip, % Round(volume)`%
SetTimer, RemoveToolTip, 1000
}