Ich hab mal 3 Fragen:
Warum sind das einzelne Balken und nicht eins, wie ich es eingegebne habe mit $PBS_SMOOTH habe?
Warum ändert der die Vordergrundfarbe nicht?
Warum ändert der dei Hintergrundfarbe nicht?
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 413, 56, 303, 219)
$Progress1 = GUICtrlCreateProgress(3, 3, 406, 49, $PBS_SMOOTH)
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x00FF00)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$Status = "Plus"
While 1
$ProgressRead = GUICtrlRead($Progress1)
If $Status = "Plus" Then
GUICtrlSetData($Progress1, $ProgressRead + 1)
If $ProgressRead = 100 Then $Status = "Minus"
ElseIf $Status = "Minus" Then
GUICtrlSetData($Progress1, $ProgressRead - 1)
If $ProgressRead = 0 Then $Status = "Plus"
EndIf
Sleep (15)
$nMSG = GUIGetMsg()
Switch $nMSG
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd