Skip to content

Instantly share code, notes, and snippets.

@franzwarning
Last active November 20, 2024 20:21
Show Gist options
  • Save franzwarning/fe1245a58dc25096498af17b890d7296 to your computer and use it in GitHub Desktop.
Save franzwarning/fe1245a58dc25096498af17b890d7296 to your computer and use it in GitHub Desktop.
LControl & Tab::AltTab
; Remap Ctrl+Left and Ctrl+Right to Home and End
^Left::Send "{Home}"
^Right::Send "{End}"
; Select to home + beginning
^+Right::{
Send "+{End}"
}
^+Left::{
Send "+{Home}"
}
!Backspace::^Backspace
$^Backspace::{
Send "+{Home}"
Send "+{Home}"
Send "{Backspace}"
}
!Left::^Left
!Right::^Right
Ctrl & `::{
OldClass := WinGetClass("A")
ActiveProcessName := WinGetProcessName("A")
WinClassCount := WinGetCount("ahk_exe" ActiveProcessName)
IF WinClassCount = 1
Return
loop 2 {
WinMoveBottom("A")
WinActivate("ahk_exe" ActiveProcessName)
NewClass := WinGetClass("A")
if (OldClass != "CabinetWClass" or NewClass = "CabinetWClass")
break
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment