Skip to content

Instantly share code, notes, and snippets.

@xiprox
Last active February 21, 2018 13:14
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 xiprox/60ab07d731a2f6ee5cd14fa9c0891b2e to your computer and use it in GitHub Desktop.
Save xiprox/60ab07d731a2f6ee5cd14fa9c0891b2e to your computer and use it in GitHub Desktop.
Various AutoHotkey scripts I use for stuff like media controls on a keyboard without the keys, Recycle Bin clearance, quick cmd, desktop switching, etc...
#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.
NumpadDot & NumpadDiv::Send ^#{Left}
NumpadDot & NumpadMult::Send ^#{Right}
#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.
NumpadDot & Numpad4::Send {Media_Prev}
NumpadDot & Numpad5::Send {Media_Play_Pause}
NumpadDot & Numpad6::Send {Media_Next}
NumpadDot & Numpad8::Send {Volume_Up}
NumpadDot & Numpad2::Send {Volume_Down}
NumpadDot & Numpad0::Send {Volume_Mute}
#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.
#+Backspace::
MsgBox, 4, Empty trash?, Are you sure you would like to empty the trash?, 0
IfMsgBox Yes
FileRecycleEmpty, C:\
SoundPlay, res/trash.mp3
return
#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.
#t::Run, %A_ProgramFiles%\cmder\Cmder.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment