Skip to content

Instantly share code, notes, and snippets.

@iamdevlinph
Last active October 2, 2017 08:05
Show Gist options
  • Save iamdevlinph/293aed98d813ab3a44e4366ce13e71bd to your computer and use it in GitHub Desktop.
Save iamdevlinph/293aed98d813ab3a44e4366ce13e71bd to your computer and use it in GitHub Desktop.
AHK
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Previous song
+F1::
Send {Media_Prev}
return
; Play/Pause
+F2::
Send {Media_Play_Pause}
return
; Next song
+F3::
Send {Media_Next}
return
; Disable perma delete
+Del::
MsgBox, 0, Oops!, This feature is disabled.
return
; Close applications
^q::Send !{F4}
return
; Switch desktop left
MButton & WheelLeft::
Send ^#{Left}
return
; Switch desktop right
MButton & WheelRight::
Send ^#{Right}
return
; Open Windows Action Center
MButton & WheelUp::
Send #a
return
; MButton loses it native function because it is used as a prefix in above 2 macros
MButton::
Send {MButton}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment