Flackern von Label beheben?

  • Hallo, ich glaub mein Label flackert!
    Grüße PU


    Nein Spaß :D
    Also undzwar hab ich mir gedacht ich mach mir ein Timer, eig. wollte ich es in eine For Schleife packen aber dazu hatte ich jetzt kein Kopf also
    wollte ich es so machen wie unten im Spoiler. Doch das Label flackert.
    Weiß einer wie ich das beheben kann?
    Danke schonmal.
    Ach und: Ich hab s eig. geschrieben weil wenn ich mir ne Pizza reinschiebe ich meißtens vergesse sie auch wieder rauszuholen,
    und ich hab mir gedacht ich schieb mir jetzt ne Pizza rein und schreib schnell den Timer der kann das ja dann anzeigen und jetzt:
    Ich hab die Pizza wieder vergessen weil ich ne STunde an dem Flackern gesessen hab :D

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 790, 461, 192, 124)
    $Button1 = GUICtrlCreateButton("Pizza wird gebacken!", 24, 240, 715, 193, $WS_GROUP)
    $Label6 = GUICtrlCreateLabel("00:15:00", 1, 8, 786, 226)
    GUICtrlSetFont(-1, 150, 400, 0, "MS Sans Serif")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    Case $Button1
    _GoPizza()
    EndSwitch
    WEnd

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    Func _GoPizza()
    $Time = 900000
    $Timer = TimerInit()
    While 1
    If $Timer > 60000 Then GUICtrlSetData($Label6, "00:14:00")
    If $Timer > 60000 * 2 Then GUICtrlSetData($Label6, "00:13:00")
    If $Timer > 60000 * 3 Then GUICtrlSetData($Label6, "00:12:00")
    If $Timer > 60000 * 4 Then GUICtrlSetData($Label6, "00:11:00")
    If $Timer > 60000 * 5 Then GUICtrlSetData($Label6, "00:10:00")
    If $Timer > 60000 * 6 Then GUICtrlSetData($Label6, "00:09:00")
    If $Timer > 60000 * 7 Then GUICtrlSetData($Label6, "00:08:00")
    If $Timer > 60000 * 8 Then GUICtrlSetData($Label6, "00:07:00")
    If $Timer > 60000 * 9 Then GUICtrlSetData($Label6, "00:06:00")
    If $Timer > 60000 * 10 Then GUICtrlSetData($Label6, "00:05:00")
    If $Timer > 60000 * 11 Then GUICtrlSetData($Label6, "00:04:00")
    If $Timer > 60000 * 12 Then GUICtrlSetData($Label6, "00:03:00")
    If $Timer > 60000 * 13 Then GUICtrlSetData($Label6, "00:02:00")
    If $Timer > 60000 * 14 Then GUICtrlSetData($Label6, "00:01:00")
    If $Timer > $Timer Then
    GUICtrlSetData($Label6, "00:00:00")
    MsgBox(0, "Pizza ist fertig!", "Die Pizza ist fertig!")
    EndIf
    WEnd
    EndFunc

    [/autoit]