Mark van Zon Posted October 21, 2005 Share Posted October 21, 2005 #include <GUIConstants.au3> GUICreate(".") ; will create a dialog box that when displayed is centered GUICtrlCreateLabel (".", 10,20) GUICtrlCreateLabel (".", 10,40) GUICtrlCreateLabel (".", 10,60) GUICtrlCreateLabel (".", 10,80) GUICtrlCreateLabel (".", 10,100) GUICtrlCreateLabel (".", 10,120) GUICtrlCreateLabel (".", 10,140) GUISetState () ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend ______________________________________________________ Every "." is text I want that there is in this window a button: Ok If u click on ok he must be go on with the script Link to comment Share on other sites More sharing options...
BigDod Posted October 21, 2005 Share Posted October 21, 2005 (edited) See my answer to this TopicEdit-Remember to scroll down as I have not figured out how to link directly to the answer. Edited October 21, 2005 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Mark van Zon Posted October 21, 2005 Author Share Posted October 21, 2005 See my answer to this TopicEdit-Remember to scroll down as I have not figured out how to link directly to the answer.$Button_1 = GuiCtrlCreateButton("OK", 340, 20, 50, 30)$Label_2 = GuiCtrlCreateLabel("", 20, 20, 300, 40)GUICtrlSetFont($Label_2, 24)GuiSetState()While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 ExitLoop EndSelectWEndIhave that copied..... But when i click on OK The message stays and the script begins, I want that the message closed and then the script start Link to comment Share on other sites More sharing options...
BigDod Posted October 21, 2005 Share Posted October 21, 2005 $Button_1 = GuiCtrlCreateButton("OK", 340, 20, 50, 30)$Label_2 = GuiCtrlCreateLabel("", 20, 20, 300, 40)GUICtrlSetFont($Label_2, 24)GuiSetState()While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 ExitLoop EndSelectWEndIhave that copied..... But when i click on OK The message stays and the script begins, I want that the message closed and then the script startTry this#include <GUIConstants.au3> GUICreate("."); will create a dialog box that when displayed is centered GUICtrlCreateLabel (".", 10,20) GUICtrlCreateLabel (".", 10,40) GUICtrlCreateLabel (".", 10,60) GUICtrlCreateLabel (".", 10,80) GUICtrlCreateLabel (".", 10,100) GUICtrlCreateLabel (".", 10,120) GUICtrlCreateLabel (".", 10,140) $Button_1 = GuiCtrlCreateButton("OK", 340, 20, 50, 30) GUISetState () ; Run the GUI until the dialog is closed While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 ExitLoop EndSelect WEnd Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Mark van Zon Posted October 21, 2005 Author Share Posted October 21, 2005 Try this#include <GUIConstants.au3> GUICreate("."); will create a dialog box that when displayed is centered GUICtrlCreateLabel (".", 10,20) GUICtrlCreateLabel (".", 10,40) GUICtrlCreateLabel (".", 10,60) GUICtrlCreateLabel (".", 10,80) GUICtrlCreateLabel (".", 10,100) GUICtrlCreateLabel (".", 10,120) GUICtrlCreateLabel (".", 10,140) $Button_1 = GuiCtrlCreateButton("OK", 340, 20, 50, 30) GUISetState () ; Run the GUI until the dialog is closed While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 ExitLoop EndSelect WEndNice but when i click on the X/ok button he don't close the window....He start the script but he dont close the window Link to comment Share on other sites More sharing options...
BigDod Posted October 21, 2005 Share Posted October 21, 2005 (edited) Nice but when i click on the X/ok button he don't close the window....He start the script but he dont close the windowCould you post the rest of your script please. When I run just the part I posted the window closes ok.Edit-Try adding GUIDelete() after the code that I suggested Edited October 21, 2005 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Scriptkiddi3 Posted October 21, 2005 Share Posted October 21, 2005 WAY TO GO! Those structures in your code are great! . . . not [-"Scriptkiddie, nice to meet you!"-] Link to comment Share on other sites More sharing options...
Skruge Posted October 21, 2005 Share Posted October 21, 2005 For $i = 1 to 22 AllWorkAndNoPlayMakeJackADullBoy() Next [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
Confuzzled Posted October 22, 2005 Share Posted October 22, 2005 What is the purpose of your bot? To harass, annoy, or more nefarious purposes? Link to comment Share on other sites More sharing options...
BigDod Posted October 22, 2005 Share Posted October 22, 2005 WAY TO GO! Those structures in your code are great!...not I am sorry that my code does not meet with your approval. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother 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