hogfan 0 Posted February 28, 2011 Is there something special I have to do to get the default Windows "X" button to work on my AutoIT form? I got my app working and compiled into an .exe, but when I try to exit the program the Windows "X" button does nothing. -hogfan Share this post Link to post Share on other sites
JohnOne 1,603 Posted February 28, 2011 Add a condition for $GUI_EVENT_CLOSE constant in your message loop. Its hardly special though, rather standard. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
wakillon 403 Posted February 28, 2011 You can use Opt( "GUIOnEventMode", 1 ) too, depends of your script.see example in "GUI Reference - OnEvent Mode" in help file. AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites