Bug (1.66): Hung programs can be terminated only with a keyboard action
With the HungWindowFromGhostWindow() function being added, terminating a hung app with a keyboard action works, but terminating it with a mouse action (Alt + Middle Click) doesn't work.
AltSnap version: 1.66 Launched w/ admin privileges: Yes Launched w/ UIAccess: No
Did you have the problem with previous version 1.65?I do not think it is related to the new feature but simply to the fact that Windows does not give the mouse event to the low level hook when hovering over a disabled window. This is a limitation of Windows IRC. but please test with previous version to be sure. Le samedi 30 août 2025 à 20:59:52 UTC+2, Kitsune @.***> a écrit :
AromaKitsune created an issue (RamonUnch/AltSnap#663) With the HungWindowFromGhostWindow() function being added, terminating a hung app with a keyboard action works, but terminating it with a mouse action (Alt + Middle Click) doesn't work.
AltSnap version: 1.66 Launched w/ admin privileges: Yes Launched w/ UIAccess: No
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Yep, I can confirm it's a Windows limitation where AltSnap can't do various mouse actions with ghosted windows, at least on 1.65 and 1.66. However, on 1.66, the 'kill program' mouse action works with ghosted windows with the following methods:
- Use the command
AltSnap.exe -apKillwhile placing the cursor over a hung program - Terminate a hung program with a mouse action (Alt + Middle Click) while AltSnap is launched with UIAccess
Interesting, you mean it works as expected with UIAcess but not with elevation?
Message ID: @.***>
Yes, AltSnap launched with UIAccess and without elevation. The AltSnap.exe -apKill command also works without UIAccess, though AltSnap need to be elevated if the hung program is elevated.
Here's a list of launch + action combinations and results:
| UIAccess? | Action | Can terminate? |
|---|---|---|
| No | Kill program mouse action |
No |
| No | AltSnap.exe -apKill command |
Yes |
| Yes | Kill program mouse action |
Yes |
| Yes | AltSnap.exe -apKill command |
Yes |
All launch methods above are not elevated.