yucatan Posted October 8, 2008 Share Posted October 8, 2008 hi i have a gui wand if i klik the X in the right top i wanne do this GUidelete() and nog close the func how i can do this ? Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 8, 2008 Share Posted October 8, 2008 Case $GUI_EVENT_CLOSE GUIDelete() Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Community On Patrol Posted October 8, 2008 Share Posted October 8, 2008 Hi yucatan, You've been warned about using one word to create a topic, and how it effects the usage of this forum. Please help us keep this forum a great place to come and find answers by using proper forum etiquette. Next time you will be reported to the moderators for abuse. Link to comment Share on other sites More sharing options...
yucatan Posted October 9, 2008 Author Share Posted October 9, 2008 Case $GUI_EVENT_CLOSEGUIDelete()i have a gui with one button in it i wanne create th at when i run the .exe and i push enter that the button in my software wil be pushed how i can fix this i know it something with setfocus but i cant figure it out Link to comment Share on other sites More sharing options...
bluelamp Posted October 9, 2008 Share Posted October 9, 2008 i have a gui with one button in it i wanne create th at when i run the .exe and i push enter that the button in my software wil be pushed how i can fix this i know it something with setfocus but i cant figure it outIf I interpreted right what you said, you want to know how to call a function if you press Enter. Here an example out of the helpfile (GUISetAccelerators) ; A simple custom messagebox that uses the MessageLoop mode #include <GUIConstantsEx.au3> GUICreate("Custom Msgbox", 210, 80) GUICtrlCreateLabel("Please click a button!", 10, 10) $YesID = GUICtrlCreateButton("Yes", 10, 50, 50, 20) $NoID = GUICtrlCreateButton("No", 80, 50, 50, 20) $ExitID = GUICtrlCreateButton("Exit", 150, 50, 50, 20) ; Set accelerators for Ctrl+y and Ctrl+n Dim $AccelKeys[2][2]=[["^y", $YesID], ["^n", $NoID]] GUISetAccelerators($AccelKeys) GUISetState() ; display the GUI Do $msg = GUIGetMsg() Select Case $msg = $YesID MsgBox(0, "You clicked on", "Yes") Case $msg = $NoID MsgBox(0, "You clicked on", "No") Case $msg = $ExitID MsgBox(0, "You clicked on", "Exit") Case $msg = $GUI_EVENT_CLOSE MsgBox(0, "You clicked on", "Close") EndSelect Until $msg = $GUI_EVENT_CLOSE Or $msg = $ExitID 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