I have a basic keyboard with no multimedia keys. So I created a simple AutoHotkey script to increase, decrease & mute my system volume:

^F10::Send {Volume_Mute}
^F11::Send {Volume_Down 5}
^F12::Send {Volume_Up 5}

The results are:

  • Ctrl+F10 for Mute
  • Ctrl+F11 for Volume Down
  • Ctrl+F12 for Volume Up

These shortcuts work fine. But the problem is when I press the F11 or F12 key for the second time (still holding the Ctrl key). Instead of invoking the given shortcut, only the keypress is executed; that is, only F11 or F12 key.

How can I fix this ? Is there a better way to make the code better so it doesn't cause any problem while playing a game? It's sometimes problematic for me when using these shortcuts while in CS 1.6.

EDIT : The first shortcut (with F10) works fine.

1 Answer 1


I solved the problem using SendInput instead of Send . Here's the script now

^F10::SendInput {Volume_Mute}
^F11::SendInput {Volume_Down 5}
^F12::SendInput {Volume_Up 5}

But I still face some problems while using these in games (like in CS 1.6 the radio chat commands come up when I use this shortcut, though I can increase or decrease the volume while playing).

  • Bind your commands to some non-conflicting shortcuts, for example CapsLock+F1, CapsLock+F2, CapsLock+F3 (Or AppsKey + ...) You can still preserve key's original functionality using CapsLock::CapsLock.
    – miroxlav
    Jul 3, 2016 at 3:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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