DW1 Posted August 1, 2007 Posted August 1, 2007 How do I use the red X to exit while in GUIOnEventMode? I have tried GUIRegisterMsg to no avail. Im sure this is an easy one AutoIt3 Online Help
AzKay Posted August 1, 2007 Posted August 1, 2007 #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("AForm1", 633, 454, 193, 115) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit") While 1 Sleep(10) WEnd Func _Exit() Exit EndFunc Like that? # MY LOVE FOR YOU... IS LIKE A TRUCK- #
DW1 Posted August 1, 2007 Author Posted August 1, 2007 OMG LOL, I was confusing GUISetOnEvent with GUIRegisterMsg.... Ooops Thanks AutoIt3 Online Help
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