Wb-FreeKill Posted February 3, 2005 Share Posted February 3, 2005 As in task manager, is it possible to make the GUICtrlCreateProgress virtical? Link to comment Share on other sites More sharing options...
MHz Posted February 3, 2005 Share Posted February 3, 2005 Changed the manual example with $PBS_VERTICAL. A little resizing, and yep, looks ok? expandcollapse popup#include <GUIConstants.au3> GUICreate("My GUI Progressbar",320,300, 100,200) $progressbar1 = GUICtrlCreateProgress (10,10,200,20) GUICtrlSetColor(-1,32250); not working with Windows XP Style $progressbar2 = GUICtrlCreateProgress (10,40,20,200,$PBS_VERTICAL); Vertical ProgressBar $button = GUICtrlCreateButton ("Start",75,70,70,20) GUISetState () $wait = 20; wait 20ms for next progressstep $s = 0; progressbar-saveposition do $msg = GUIGetMsg() If $msg = $button Then GUICtrlSetData ($button,"Stop") For $i = $s To 100 If GUICtrlRead($progressbar1) = 50 Then Msgbox(0,"Info","The half is done...", 1) $m = GUIGetMsg () If $m = -3 Then ExitLoop If $m = $button Then GUICtrlSetData ($button,"Next") $s = $i;save the current bar-position to $s ExitLoop Else $s=0 GUICtrlSetData ($progressbar1,$i) GUICtrlSetData ($progressbar2,(100 - $i)) Sleep($wait) EndIf Next if $i >100 then ; $s=0 GUICtrlSetData ($button,"Start") endif EndIf until $msg = $GUI_EVENT_CLOSE Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted February 3, 2005 Author Share Posted February 3, 2005 That 2'end time you helped me, thx man my problem is, im way to lazy to read the whole manual Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted February 3, 2005 Author Share Posted February 3, 2005 But how can i then read cpu usage, without having the task manger running? Link to comment Share on other sites More sharing options...
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