AltSnap icon indicating copy to clipboard operation
AltSnap copied to clipboard

Bug (1.66): Hung programs can be terminated only with a keyboard action

Open AromaKitsune opened this issue 4 months ago • 4 comments

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

AromaKitsune avatar Aug 30 '25 18:08 AromaKitsune

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: @.***>

RamonUnch avatar Sep 01 '25 09:09 RamonUnch

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 -apKill while placing the cursor over a hung program
  • Terminate a hung program with a mouse action (Alt + Middle Click) while AltSnap is launched with UIAccess

AromaKitsune avatar Sep 01 '25 16:09 AromaKitsune

Interesting, you mean it works as expected with UIAcess but not with elevation? Message ID: @.***>

RamonUnch avatar Sep 02 '25 08:09 RamonUnch

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.

AromaKitsune avatar Sep 02 '25 15:09 AromaKitsune