Skip to content

Instantly share code, notes, and snippets.

@mmarinero
Last active August 29, 2015 14:04
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 mmarinero/fef7d11cfa8a7045568f to your computer and use it in GitHub Desktop.
Save mmarinero/fef7d11cfa8a7045568f to your computer and use it in GitHub Desktop.
Global shortcuts to manage spotify, mute the audio and use the arrows with alt + vim commands. Not working with since Spotify 1.0.2.6
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: M. Marinero <mariomarinero@gmail.com>
;
; Script Function:
; Shortcuts to manage spotify, mute the audio and use the arrows with alt + vim commands
; Not working since Spotify 1.0.2.6
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
!j::send {down}
!k::send {up}
!h::send {left}
!l::send {right}
!a::ControlSend, ahk_parent, ^{Right}, ahk_class SpotifyMainWindow
!x::ControlSend, ahk_parent, ^{Left}, ahk_class SpotifyMainWindow
!z::ControlSend, ahk_parent, {space}, ahk_class SpotifyMainWindow
^!z::Send {Volume_Mute}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment