tempman Posted September 25, 2008 Share Posted September 25, 2008 Where to put $GUI_EVENT_CLOSE #include <GuiConstants.au3> GuiCreate("", 400, 400) Dim $array[5000] GuiCtrlCreateProgress(10, 50, 300, 20) GUISetState() For $i=0 To Ubound($array)-1 sleep(50) GUICtrlSetData(-1,$i) Next Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 25, 2008 Share Posted September 25, 2008 You don't have a while loop so it should close automatically anyway. 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...
tempman Posted September 25, 2008 Author Share Posted September 25, 2008 You don't have a while loop so it should close automatically anyway.it should, but don`t, try Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 25, 2008 Share Posted September 25, 2008 lol considering your array is 5000 elements it might just be taking a while. how long did you wait? 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...
NeoFoX Posted September 25, 2008 Share Posted September 25, 2008 Hey, This works... BUT it's not a great solution because it's now in every for-loop watching for a close... #include <GuiConstants.au3> GuiCreate("", 400, 400) Dim $array[5000] GuiCtrlCreateProgress(10, 50, 300, 20) GUISetState() For $i=0 To Ubound($array)-1 sleep(50) GUICtrlSetData(-1,$i) $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Next Greetz, Neo [center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center] Link to comment Share on other sites More sharing options...
tempman Posted September 25, 2008 Author Share Posted September 25, 2008 Cheers Neo 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