onedayillpay Posted October 30, 2007 Share Posted October 30, 2007 Simple loop driving me crazy. i just need the tittle to loop from 1-100. I for got how to update the gui#include <GUIConstants.au3> $number = 1 $gui=GUICreate($number&" <----i need this to loop 1-00") GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() GUICtrlGetstate($gui) ; <----thought this would do it if $number=100 then $number=1 $number=$number +1 MsgBox(0,$number,"omg") If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 30, 2007 Moderators Share Posted October 30, 2007 Look at WinSetTitle WinSetTitle($gui, "", $number) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
smashly Posted October 30, 2007 Share Posted October 30, 2007 Hi, $Gui = GUICreate("", 185, 50) GUISetState (@SW_SHOW, $Gui) While 1 For $i = 0 To 99 If GUIGetMsg() = -3 Then Exit Sleep(50) WinSetTitle($Gui, "", StringFormat("%02d", $i)) If $i = 99 Then $i = 0 Next WendoÝ÷ Øêâ*.¦V§¢whx,¢g)à|¨º¹|!W¥¢Z³¥«.¥Öx'ºfޮƧu§-¹©eÊë"az¢Â¥z+wöÇ(º{bazyÉ·®±æ&í¡Ú-ç(º{b®¶sb6æ6ÇVFRfÇC´uT6öç7FçG2æS2fwC° ¤vÆö&Âb33c¶6çBÂb33cµ7FFRÂb33c·7VV@ ¢b33c´wVÒuT7&VFRgV÷C³gV÷C²ÂRÂS¢b33c´f7BÒuT7G&Ä7&VFTÆ&VÂgV÷C´f7BgV÷C²ÂRÂRÂ3Â#¢b33cµ6Æ÷rÒuT7G&Ä7&VFTÆ&VÂgV÷Cµ6Æ÷rgV÷C²ÂSRÂRÂ3Â#¢b33cµ6ÆFW"ÒuT7G&Ä7&VFU6ÆFW"3ÂÂ#Â#rÂb33cµD%5ôäõD4µ2²b33cµD%5ô$õD¤uT7G&Å6WDÆÖBÓÂS¤uT7G&Å6WDFFÓÂ#CR¤uT6WE7FFR5uõ4õrÂb33c´wV ¥vÆR buTvWD×6rÒÓ2FVâW@¢bb33cµ7FFRÒFVà b33cµ7FFRÒ¢FÆ$Væ&ÆRgV÷C´6÷VçBgV÷C²Âb33c·7VVB¢VæD` buT7G&Å&VBb33cµ6ÆFW"fÇC²fwC²b33c·7VVBFVà b33c·7VVBÒuT7G&Å&VBb33cµ6ÆFW" VæD`¥vVæ@ ¤gVæ26÷VçB¢vå6WEFFÆRb33c´wVÂgV÷C²gV÷C²Â7G&ætf÷&ÖBgV÷C²S&BgV÷C²Âb33c¶6çB b33c¶6çB³Ò bb33c¶6çBfwC²FVâb33c¶6çBÒ FÆ$F6&ÆR b33cµ7FFRÒ¤VæDgVæ Cheers 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