Mousewheel Volume

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
robotsneedhugs2
Posts: 3
Joined: 03 Feb 2017, 11:42

Mousewheel Volume

03 Feb 2017, 11:53

I've got a simple script that controls the volume when I press CTRL+ALT and scroll. It worked great, I would scroll up and it would continue turning up as I'm scrolling. There were some other hotkeys in the script file that I didn't use anymore so I removed them and now, for some reason, it only turns the volume up one notch at a time. I'm not sure how the other lines affected it but it's not working as it was before. I don't have the old lines anymore.

Here's the script I was using:

Code: Select all

^!WheelUp::Volume_Up
^!WheelDown::Volume_Down
^!MButton::Volume_Mute
I've tried adding 'return' to it in various places but it still isn't working like before. What am I missing?
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: Mousewheel Volume

03 Feb 2017, 12:17

I'm not sure how the other lines affected your script, but this remapping actually outputs Ctrl+Alt+Volume_xxx. Try this:

Code: Select all

^!WheelUp::Send {Volume_Up}
^!WheelDown::Send {Volume_Down}
^!MButton::Send {Volume_Mute}
If that doesn't help, post AHK's key history after using this hotkey.
robotsneedhugs2
Posts: 3
Joined: 03 Feb 2017, 11:42

Re: Mousewheel Volume

03 Feb 2017, 13:43

It's the same. Is this the key history?

Code: Select all

Script lines most recently executed (oldest first).  Press [F5] to refresh.  The seconds elapsed between a line and the one after it is in parentheses to the right (if not 0).  The bottommost line's elapsed time is the number of seconds since it executed.

001: Return (1.00)
002: Send,{Volume_Down} (0.02)
002: Return (0.98)
002: Send,{Volume_Down} (0.02)
002: Return (0.34)
002: Send,{Volume_Down} (0.02)
002: Return (7.63)

Press [F5] to refresh.
robotsneedhugs2
Posts: 3
Joined: 03 Feb 2017, 11:42

Re: Mousewheel Volume

03 Feb 2017, 13:52

It works fine if I remove the Alt key!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], ibuz4u, reddyshyam and 65 guests