Skip to content

Instantly share code, notes, and snippets.

@pansila
Created October 3, 2023 11:23
Show Gist options
  • Save pansila/132d6be5b1476113bdaa993f23fb88a4 to your computer and use it in GitHub Desktop.
Save pansila/132d6be5b1476113bdaa993f23fb88a4 to your computer and use it in GitHub Desktop.
my autohotkey script
#\::{
SendMessage 0x0112, 0xF140, 0, , "Program Manager"
Sleep 1000
SendMessage 0x0112, 0xF170, 2, , "Program Manager"
}
#+p::run "shutdown.exe /r /fw /t 0" ; reboot to bios
#+r::run "explorer.exe ::{645FF040-5081-101B-9F08-00AA002F954E}" ; Recycle bin
#+s::run "explorer.exe shell:startup"
F8::WinSetAlwaysOnTop -1, "A"
#HotIf MouseIsOver("ahk_class Shell_TrayWnd")
WheelUp::SoundSetVolume "+10"
WheelDown::SoundSetVolume -10
MButton::SoundSetMute -1
MouseIsOver(WinTitle) {
MouseGetPos ,, &win
return WinExist(WinTitle " ahk_id " Win)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment