Created
April 10, 2018 10:33
-
-
Save rubenleikarnes/4da284ced57c833a37d7775afe72fea7 to your computer and use it in GitHub Desktop.
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
; # - 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