AutoIt
#include <GUIConstantsEx.au3> #include <ProgressConstants.au3> Opt('MustDeclareVars', 1) Example() Func Example() Local $progressbar1, $progressbar2, $button, $wait, $s, $msg, $m GUICreate("My GUI Progressbar", 220, 100, 100, 200) $progressbar1 = GUICtrlCreateProgress(10, 10, 200, 20) $button = GUICtrlCreateButton("Start", 75, 70, 70, 20) GUISetState() Local $i = 0 Do $msg = GUIGetMsg() If $msg = $button Then GUICtrlSetData($progressbar1, $i += 10) Sleep(300) GUICtrlSetData($progressbar1, $i += 10) Sleep(300) GUICtrlSetData($progressbar1, $i += 10) Sleep(300) GUICtrlSetData($progressbar1, $i += 10) Sleep(300) GUICtrlSetData($progressbar1, $i += 10) Sleep(300) EndIf Until $msg = $GUI_EVENT_CLOSE EndFunc ;==>Example
Modified sample script from the GuiCtrlCreateProgress
When I try and run I get an error parsing function call with the $i += 10
I'm not sure why I can't preform this operation.





