Jussip Posted October 16, 2008 Posted October 16, 2008 How i can make this working? I dont wanna open other progress window.. #include <GUIConstants.au3> $Form1 = GUICreate("Progress", 198, 91, 193, 125) $Progress1 = GUICtrlCreateProgress(16, 16, 150, 17) $Process = GUICtrlCreateButton("Progress on!", 24, 48, 75, 25, 0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Process EndSwitch WEnd
i542 Posted October 16, 2008 Posted October 16, 2008 (edited) #include <GUIConstants.au3> $Form1 = GUICreate("Progress", 198, 91, 193, 125) $Progress1 = GUICtrlCreateProgress(16, 16, 150, 17) $Process = GUICtrlCreateButton("Progress on!", 24, 48, 75, 25, 0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Process For $i = 1 To 100 GuiCtrlSetData($progress, $i) Sleep(250) Next EndSwitch WEnd edit: Bug fix Edited October 16, 2008 by i542 I can do signature me.
Jussip Posted October 16, 2008 Author Posted October 16, 2008 (edited) #include <GUIConstants.au3> $Form1 = GUICreate("Progress", 198, 91, 193, 125) $Progress1 = GUICtrlCreateProgress(16, 16, 150, 17) $Process = GUICtrlCreateButton("Progress on!", 24, 48, 75, 25, 0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Process For $i = 1 To 100 GuiCtrlSetData($progress, 1) Sleep(250) Next EndSwitch WEnd Thanks, but the progress bar isnt moving? Edited October 16, 2008 by Jussip
AdmiralAlkex Posted October 16, 2008 Posted October 16, 2008 change GuiCtrlSetData($progress, 1) to GuiCtrlSetData($progress, $1) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
i542 Posted October 16, 2008 Posted October 16, 2008 change GuiCtrlSetData($progress, 1) to GuiCtrlSetData($progress, $1)*coughs* to $i I can do signature me.
AdmiralAlkex Posted October 16, 2008 Posted October 16, 2008 *coughs* to $i (I guess we both didn't look hard enough!) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now