Last active
July 11, 2020 21:29
-
-
Save aqt/9609b8785491bfdb1416f6ce3ebf8e59 to your computer and use it in GitHub Desktop.
Skip forwards/backwards in Spotify track
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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