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 ###
For $p = 1 To 100 Step 1
Sleep(10)
GUICtrlSetData($Progress1, $p)
Next
Exit
While 1
Sleep(9)
WEnd
Edit:
Oder so ![]()
Spoiler anzeigen
[autoit]
$Form1 = GUICreate("Form1", 520, 80, 291, 125)
$Progress1 = GUICtrlCreateProgress(10, 10, 500, 20)
GUISetState(@SW_SHOW)
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