Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
; # - 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