A Windows take on KDE's Ctrl+Alt+Esc "kill window" mode, written for AutoHotkey v2
| LICENSE | ||
| README.md | ||
| WinXKill.ahk | ||
WinXKill
A Windows take on KDE's Ctrl+Alt+Esc "kill window" mode, written for AutoHotkey v2.
Install
- Install AutoHotkey v2 (tested with 2.0.26).
- Keep
WinXKill.ahkinC:\Users\jason.fraley\Tools\WinXKill. - Double-click
WinXKill.ahkto start it. A tray icon appears.
Use
- Press Ctrl+Alt+Esc in any app to turn on kill mode. The cursor changes to a crosshair, and a tooltip names the window under it (process name, PID, title).
- Left-click a window to end its whole process (not just close the window). Kill mode then turns off.
- Press Esc or right-click to cancel without killing anything.
- Tray menu: Enter kill mode and Exit.
Autostart
A shortcut at %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\WinXKill.lnk runs
AutoHotkey64.exe "C:\Users\jason.fraley\Tools\WinXKill\WinXKill.ahk" when you sign in.
Delete the shortcut to turn autostart off.
Limitations
- The script refuses to kill
explorer.exe(desktop, taskbar and File Explorer windows) and itself. - It runs unelevated and never asks for UAC. It can't end elevated (administrator) processes. When a kill fails, a tray notification and tooltip say so.
- Clicking a window ends every window that belongs to the same process (for example, all windows of a browser). Unsaved work is lost.
- Crash recovery: if the script is ended while kill mode is on, the crosshair cursor may stay. Sign out, or change the pointer scheme in Settings, to restore the normal cursors.
- Optional: start the script with
/debugto write a log to%TEMP%\WinXKill-debug.log.