Progress färben

  • hi
    ich will gern ma wissen wie man ein Progress färbt ^^
    grün wird mir langsam zu öde :D
    und hir das skript wo ich dran ausprobiere :

    Spoiler anzeigen
    [autoit]


    #include <GUIConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 520, 80, 291, 125)
    $Progress1 = GUICtrlCreateProgress(0, -8, 600, 689)
    GUICtrlSetColor($Progress1,0xFF0000)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    For $p = 1 to 100 Step 1
    sleep(100)
    GuiCtrlSetData($Progress1, $p)
    Next
    Exit

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

    While 1
    Sleep(9)
    WEnd

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit]
  • Geht doch genau so wie du es schon hast!? Hab nur di eKoordinaten etwas angepasst, damit man was sieht.

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 520, 80, 291, 125)
    $Progress1 = GUICtrlCreateProgress(10, 10, 500, 20)
    GUICtrlSetColor($Progress1, 0xFF0000)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    For $p = 1 To 100 Step 1
    Sleep(10)
    GUICtrlSetData($Progress1, $p)
    Next
    Exit

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

    While 1
    Sleep(9)
    WEnd

    [/autoit]


    Edit:
    Oder so :P

    Spoiler anzeigen
    [autoit]

    $Form1 = GUICreate("Form1", 520, 80, 291, 125)
    $Progress1 = GUICtrlCreateProgress(10, 10, 500, 20)
    GUISetState(@SW_SHOW)

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

    For $p = 1 To 100 Step 1
    Sleep(50)
    GUICtrlSetData($Progress1, $p)
    If Not Mod($p, 10) Then GUICtrlSetColor($Progress1, Random(0, 16777215, 1))
    Next

    [/autoit] [autoit][/autoit] [autoit][/autoit]
  • Stimmt im klassischen Style funst es :D
    aber es sieht nich soo schön aus wie im originalen style :(