Skip to content

Instantly share code, notes, and snippets.

@huaminghuangtw
Last active April 28, 2023 09:52
Show Gist options
  • Save huaminghuangtw/1ff244be09aff334c4c9993e88c942e7 to your computer and use it in GitHub Desktop.
Save huaminghuangtw/1ff244be09aff334c4c9993e88c942e7 to your computer and use it in GitHub Desktop.
Keyboard shortcuts for media control in Windows 10 using AutoHotkey
^!Space::Media_Play_Pause ;"Ctrl + Alt + Space" to play/pause/resume media
^!Shift::Volume_Mute ;"Ctrl + Alt + Shift" to toggle mute/unmute
^!Left::Media_Prev ;"Ctrl + Alt + ⭠" to play previous clip
^!Right::Media_Next ;"Ctrl + Alt + ⭢" to play next clip
^!Up::Volume_Up ;"Ctrl + Alt + ⭡" to increase volume
^!Down::Volume_Down ;"Ctrl + Alt + ⭣" to reduce volume
@huaminghuangtw
Copy link
Author

huaminghuangtw commented Apr 27, 2023

AutoHotkey keyboard shortcuts for media control in Windows 10

👉 How to use this script?

  1. Download the latest version of AutoHotkey.
  2. Copy-and-paste the content of autohotkey-media-control.ahk to create a new script.
  3. Double-click on it.
  4. Now, you have hotkey control over the media with your keyboard 🚀.

To make your life easier, you can automatically launch AutoHotkey scripts on Windows startup. This can be achieved by the following steps:

  1. Create a shortcut for the script autohotkey-media-control.ahk by right-click > Create shortcut
  2. Win + R
  3. Enter shell:startup
  4. Move the shortcut you just created to this folder

👉 AutoHotkey keyboard shortcuts

  • Ctrl + Alt + Space : Toggle Pause/Play/Resume
  • Ctrl + Alt + ⭡ or ⭣ : Toggle Mute/Unmute
  • Ctrl + Alt + : Volume Up
  • Ctrl + Alt + : Volume Down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment