Burgaud Posted March 1, 2023 Share Posted March 1, 2023 switch GUIGetMsg(0) case $GUI_EVENT_CLOSE exit(0) How do I exclude "ESC" key from the $GUI_Event_Close? I dont want app from closing simply because user accidentally hit "ESC" key. Link to comment Share on other sites More sharing options...
ioa747 Posted March 1, 2023 Share Posted March 1, 2023 I don't know if there is anything special, but you can with HotKeySet("{ESC}", "_dumy") Func _dumy() ConsoleWrite("{ESC}" & @CRLF) EndFunc ;==>_dumy Burgaud 1 I know that I know nothing Link to comment Share on other sites More sharing options...
Musashi Posted March 1, 2023 Share Posted March 1, 2023 Put Opt("GUICloseOnESC", 0) ;1=ESC closes, 0=ESC won't close somewhere in the top region of your script ioa747, SOLVE-SMART, pixelsearch and 1 other 4 "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
Skysnake Posted March 14, 2023 Share Posted March 14, 2023 Break(0) ; user can not break - Windows Exit required 😉 SOLVE-SMART 1 Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now