WinXKill/README.md
2026-11-17 15:48:02 +00:00

35 lines
1.6 KiB
Markdown

# WinXKill
A Windows take on KDE's Ctrl+Alt+Esc "kill window" mode, written for AutoHotkey v2.
## Install
1. Install AutoHotkey v2 (tested with 2.0.26).
2. Keep `WinXKill.ahk` in `C:\Users\jason.fraley\Tools\WinXKill`.
3. Double-click `WinXKill.ahk` to 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 `/debug` to write a log to `%TEMP%\WinXKill-debug.log`.
>>>>>>> 3a587b0 (Initial commit)