I have an electron app in which i am using Auto Hot key.I want to disable ALT+F4 for that i have written following script
!F4::Return
After execution of this script i am still able to close my electron app using Alt+F4 but for other application like for Notepad,folder etc script is working fine.
For reference: https://www.autohotkey.com/docs/AutoHotkey.htm