Sign in to follow this  
Followers 0
DW1

GUIOnEventMode

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#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- #

Share this post


Link to post
Share on other sites

OMG LOL,

I was confusing GUISetOnEvent with GUIRegisterMsg.... Ooops

Thanks :)

Share this post


Link to post
Share on other sites

Anytime :3


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


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
Sign in to follow this  
Followers 0