Skip to content

Instantly share code, notes, and snippets.

@mariotacke
Last active May 28, 2024 22:47
Show Gist options
  • Save mariotacke/5d3e530b554fae7b6d0d9fb2b3292a37 to your computer and use it in GitHub Desktop.
Save mariotacke/5d3e530b554fae7b6d0d9fb2b3292a37 to your computer and use it in GitHub Desktop.
Spotify AutoHotkey Script

Spotify AutoHotkey Script

This script makes use of the Numpad to control media players and volume on your system.

Usage

  • Install AutoHotkey
  • Right-click .ahk script
  • Compile Script
  • Start executable

Hotkeys

  • Ctrl + Numpad 4: Previous Track
  • Ctrl + Numpad 5: Play/Pause Track
  • Ctrl + Numpad 6: Next Track
  • Ctrl + Numpad 8: Volume Up
  • Ctrl + Numpad 2: Volume Down

Visual

     8
     🔊
 4   5   6 
⏮️  ⏯️  ⏭️
     2
     🔉
#SingleInstance force
#NoEnv
SendMode Input
;Ctrl & Numpad 4: Previous Track
^Numpad4::Media_Prev
;Ctrl & Numpad 6: Next Track
^Numpad6::Media_Next
;Ctrl & Numpad 8: Volume Up
^Numpad8::SoundSet +3
;Ctrl & Numpad 2: Volume Down
^Numpad2::SoundSet -3
;Ctrl & Numpad 5: Play/Pause Track
^Numpad5::Media_Play_Pause
@Banana-PC
Copy link

Thx!!! I miss my keyboard that has midia controls.
This made my life easier! :D

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