Skip to content

Instantly share code, notes, and snippets.

@rubenleikarnes
Created April 10, 2018 10:33
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 rubenleikarnes/4da284ced57c833a37d7775afe72fea7 to your computer and use it in GitHub Desktop.
Save rubenleikarnes/4da284ced57c833a37d7775afe72fea7 to your computer and use it in GitHub Desktop.
; # - win
; ! - alt
; ^ - ctrl
; + - shift
#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.
; Spotify start
#!Space::Send {Media_Play_Pause}
#!a::Send {Media_Prev}
#!s::Send {Media_Next}
#!d::Send {Volume_Down}
#!e::Send {Volume_Up}
#!q::
ControlSend, ahk_parent, ^{Down}, ahk_class SpotifyMainWindow
return
#!w::
ControlSend, ahk_parent, ^{Up}, ahk_class SpotifyMainWindow
return
; Spotify end
;Delete this section to enable caps lock in game. (Note: It still works as a key it just does not stay toggled on)
;-start-
#If WinActive("ahk_exe csgo.exe") or WinActive("ahk_exe dota.exe")
~CapsLock Up::SetCapsLockState, off
#if
;-end-
; Remove start+space keyboard input hotkey (change keyboard layout (EN/NO))
#Space::
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment