I am looking for a program that can allow me to set deliberate action for pressing mouse and keyboard buttons. For instance win key + Wheel up can be set to Volume up.

I prefer a gratis program for windows.

1 Answer 1


AutoHotKey is available for free and can be used to create a wide range of keyboard and mouse shortcuts, hotkeys, and macros.

The syntax to set the Volume Up with WinKey + Wheel Up would be #WheelUp::Send {Volume_Up}. After installing AutoHotKey, enter that into a blank text document and save it a 'fileNameHere'.ahk, then double click to run it.

While I am not using it currently, I have used AutoHotKey quite extensively in the past. Check out my GitHub for some examples of what you can do.

  • Thank you for answer. I made following code as you suggested: #WheelUp::Send {Volume_Up} #Wheeldown::Send {Volume_Down} and it works. the only problem is that windows start menu also open up at the same time. Is there any way to disable start menu pop up during execution of code?
    – Sadegh
    Feb 25, 2016 at 14:56
  • I have done quite a bit of AutoHotKey work since this answer (actually got back into it because of this question). Unfortunately, when using the mouse with the WindowsLogoKey, it seems the menu will always pop up. Feb 25, 2016 at 15:01
  • 1
    yes, better use ctrl, shift or alt.. thanks and good luck with coding!
    – Sadegh
    Feb 25, 2016 at 15:01
  • also pls take a look at this question, maybe you have a solution with ahk?softwarerecs.stackexchange.com/questions/29889/…
    – Sadegh
    Feb 25, 2016 at 15:06
  • @Woeistg unfortunately, the dpi button on most mice changes internal firmware settings and it's being pressed is never sent to the computer. This means AHK cannot see or utilize it. Feb 25, 2016 at 15:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.