If you have a keyboard with media keys, you can change the sound volume by pressing the volume up or down key.
If the keyboard does not have media keys, you can still change the sound volume in Windows 11 or 10 using a special key combination. This works via a special program with which a script must be created.
This program is called AutoHotKey and makes it possible to perform Windows functions by assigning a key combination to these functions. This way, by changing a key combination to increase or decrease the sound volume, you can still work in the same way as if your keyboard had media keys. This is how it works.
Change sound volume via keyboard in Windows 11/10
To begin download AutoHotKey to your computer. Then install AutoHotKey by completing the installation process.
After installing AutoHotKey, right-click on the desktop. Then click on “New” and on “Text document (.txt)”. This is necessary to create a new script.
Open the new text document. Then copy and paste the script below into the text document.
!Up:: ; Alt + Up Arrow (Volume verhogen) { Send("{Volume_Up}") return } !Down:: ; Alt + Down Arrow (Volume verlagen) { Send("{Volume_Down}") return } !M:: ; Alt + M (Volume dempen) { Send("{Volume_Mute}") return }
Save this script as “ChangeVolume.ahk”. Make sure you don't use the extension “.txt”, but “.ahk”. The name of the script is not specific.
Double-click the saved file to open it. The script is immediately active in the background.
AutoHotKey will then be located in the system tray.
You can now use the following key combinations.
- ALT + Up arrow increases the volume.
- ALT + Down arrow is to decrease the volume.
- ALT + M is to mute the volume.
I hope this helped you. Thank you for reading!