Last active
November 20, 2024 20:21
-
-
Save franzwarning/fe1245a58dc25096498af17b890d7296 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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