Sign in to follow this  
Followers 0
onedayillpay

Gui quicky

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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

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