Jump to content

(solved-ish) Disable Alt+F4?

AsmodeusCruentus
Go to solution Solved by Franck,
2 hours ago, mariushm said:

Windows 10 will not let you intercept Alt+F4 because it would make applications impossible to close in an easy way by users. Think viruses or ransomware that configures itself always on top and full screen and doesn't close.

 

Before Windows 10 you could use RegisterHotKey to intercept it:

 

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerhotkey?redirectedfrom=MSDN

c# example https://www.codeproject.com/Articles/23955/Running-a-Web-Site-in-Kiosk-Mode-with-C

 

 

Not exactly true. There is some ways to code where it works for any windows OS to grab ANY keys that are being pressed on the keyboard. It's the same method as Input sniffer which is considered hacking/spying. You grab every data the user can type, copy, move around in an unencrypted manner no matter what he does. Extremely shaddy and dangerous. I don't know why they keep it that way after so many years.

 

 

@AsmodeusCruentus  Long story short if you search long enough you can find your solution.

Hello folks!
I'm wondering if there is any way to disable the windows Function Alt+F4
so that it just wont work. I've tried Autohotkey, but it only seems to work on the desktop itself.

if anyone knows of a Regedit or something like that to disable this horrid function, i'd be glad.
Since the only thing google yields in search results is Autohotkey.

Regards.
Asmodeus C.

Link to comment
Share on other sites

Link to post
Share on other sites

Windows 10 will not let you intercept Alt+F4 because it would make applications impossible to close in an easy way by users. Think viruses or ransomware that configures itself always on top and full screen and doesn't close.

 

Before Windows 10 you could use RegisterHotKey to intercept it:

 

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerhotkey?redirectedfrom=MSDN

c# example https://www.codeproject.com/Articles/23955/Running-a-Web-Site-in-Kiosk-Mode-with-C

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, chiller15 said:

I know you said you've tried AutoHotKey, but is this the command you tried?


#NoTrayIcon
!F4::Return

I saw it on this on another forum (albeit an old post), but it apparently worked for them: http://www.edugeek.net/forums/windows-server-2008-r2/121900-disable-alt-f4.html

It did not Contain the "no tray icon" thing, but yes, that is the same command as I found on the web. sadly, it still closes down any game when I press Alt+F4

Link to comment
Share on other sites

Link to post
Share on other sites

32 minutes ago, mariushm said:

 

Before Windows 10 you could use RegisterHotKey to intercept it:

 

 

So what you're saying is that it is Impossible? just all together, except my decompiling the entire Windows OS and removing that line of coding and Recompiling it? x)

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, mariushm said:

Windows 10 will not let you intercept Alt+F4 because it would make applications impossible to close in an easy way by users. Think viruses or ransomware that configures itself always on top and full screen and doesn't close.

 

Before Windows 10 you could use RegisterHotKey to intercept it:

 

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerhotkey?redirectedfrom=MSDN

c# example https://www.codeproject.com/Articles/23955/Running-a-Web-Site-in-Kiosk-Mode-with-C

 

 

Not exactly true. There is some ways to code where it works for any windows OS to grab ANY keys that are being pressed on the keyboard. It's the same method as Input sniffer which is considered hacking/spying. You grab every data the user can type, copy, move around in an unencrypted manner no matter what he does. Extremely shaddy and dangerous. I don't know why they keep it that way after so many years.

 

 

@AsmodeusCruentus  Long story short if you search long enough you can find your solution.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×