Skip to content

Instantly share code, notes, and snippets.

@aqt
Last active July 11, 2020 21:29
Show Gist options
  • Save aqt/9609b8785491bfdb1416f6ce3ebf8e59 to your computer and use it in GitHub Desktop.
Save aqt/9609b8785491bfdb1416f6ce3ebf8e59 to your computer and use it in GitHub Desktop.
Skip forwards/backwards in Spotify track
; Currently it skips 15 seconds, but this may change as Spotify updates their software.
; AutoHotkey used for simplicity, it's just using the regular winapi.
; Defined in Winuser.h - https://docs.microsoft.com/en-us/windows/desktop/inputdev/wm-appcommand
WM_APPCOMMAND := 0x0319
APPCOMMAND_MEDIA_FAST_FORWARD := 49
APPCOMMAND_MEDIA_REWIND := 50
; "Control" + the keyboard media keys "next"/"previous"
^Media_Next:: PostMessage, WM_APPCOMMAND,, APPCOMMAND_MEDIA_FAST_FORWARD << 16,, ahk_exe Spotify.exe
^Media_Prev:: PostMessage, WM_APPCOMMAND,, APPCOMMAND_MEDIA_REWIND << 16,, ahk_exe Spotify.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment