Skip to content

Instantly share code, notes, and snippets.

@vlakoff
Created September 13, 2015 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlakoff/e7398f080a02dca8cc69 to your computer and use it in GitHub Desktop.
Save vlakoff/e7398f080a02dca8cc69 to your computer and use it in GitHub Desktop.
Spotify launcher - start application if needed, add global hotkeys
; www.autohotkey.com/board/topic/36239-spotify-global-hotkeys/
; #Win !Alt ^Ctrl +Shift
#NoEnv
#SingleInstance force
DetectHiddenWindows, On
IfWinNotExist, ahk_class SpotifyMainWindow
Run, %A_AppData%\Spotify\spotify.exe, %A_AppData%\Spotify
; Ctrl + Win + NumPad 1 : Play/Pause
^#Numpad1::
^#NumpadEnd::
ControlSend, ahk_parent, {space}, ahk_class SpotifyMainWindow
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment