I've been using the following script to change the system volume quite successfully for some time:
Code: Select all
#vk21::send {volume_up 2}
#vk22::Send {volume_down 2}
#vk23::send {volume_mute}
1. If I press Win and hold down PgUp/PgDn, or press them somewhat quickly a few times, the combination of Ctrl+PgUp/PgDn (Yes, CTRL, even though it's not included in the script) is send to the application that currently in focus. For example, if I have browser opened, it scrolls between my tabs. If I look in the history of the key-presses, here's what I see (for example, for Win+PgUp):
Code: Select all
5C 15C d 1.16 RWin
21 149 d 0.25 PgUp
A2 01D i d 0.01 LControl
A2 01D i u 0.00 LControl
5C 15C i u 0.02 RWin
AF 030 i d 0.01 Volume_Up
AF 030 i u 0.02 Volume_Up
21 149 u 0.02 PgUp
AF 030 i d 0.01 Volume_Up
AF 030 i u 0.00 Volume_Up
A2 01D i d 0.02 LControl
5C 15C i d 0.02 RWin
A2 01D i u 0.00 LControl
5C 15C u 0.16 RWin
2. And the second problem - sometimes after I press Win+PgUp/PgDn, the "Win" key becomes virtually stuck. That is, it's physically in unpressed state, but the system thinks it's pressed down. After I press "Win" key again, it's fixed. When I close the script, the issue is not reproduced, so it's definetely AHK's fault.
Please, if you know how I can modify the script to solve those issues, help me, I'll be very grateful. By the way, other combinations involing "Win" key in the same sctipt works perfectly. For example - #vk47::run http://www.google.ru
Code: Select all
5B 15B d 2.66 LWin C:\scripts_autohotkey\desktop1.ahk - AutoHotkey v1.1.22.02
47 022 d 0.20 g
47 022 u 0.06 g
5B 15B u 0.16 LWin Untitled - Google Chrome