dakota Posted June 6, 2006 Share Posted June 6, 2006 will some one please make me a progress bar that will be equal to the value of a slider i would like this as an example please help Link to comment Share on other sites More sharing options...
Somerset Posted June 6, 2006 Share Posted June 6, 2006 $digit=537643 $x=Int($digit / 100) now take $digit and divide it by $x that will result in the number of times it goes into $digit as a % so you can use it in progressbar... Link to comment Share on other sites More sharing options...
dakota Posted June 6, 2006 Author Share Posted June 6, 2006 Will you make it for me i need a full script i am a noob and i learn best from examples i want to have a slider and what ever # the slider is on is the % that the progress bar will be on. Thinks Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 6, 2006 Moderators Share Posted June 6, 2006 Will you make it for me i need a full script i am a noob and i learn best from examples i want to have a slider and what ever # the slider is on is the % that the progress bar will be on. ThinksYour kidding right? http://www.rentacoder.com Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Somerset Posted June 6, 2006 Share Posted June 6, 2006 Your kidding right? http://www.rentacoder.comhttp://www.rentacoder.com Link to comment Share on other sites More sharing options...
Micha1405 Posted June 6, 2006 Share Posted June 6, 2006 Try this: #include <GUIConstants.au3> $Main = GUICreate("Slider Progress", 400, 100, -1, -1) $slider1 = GUICtrlCreateSlider (10,10,200,20) $progress=GUICtrlCreateProgress(10,40,200,10,$PBS_SMOOTH) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg=$slider1 GUICtrlSetData ($progress,GUICtrlRead($slider1)) ;;;;;;; EndSelect WEnd My TrayToolBar Link to comment Share on other sites More sharing options...
dakota Posted June 6, 2006 Author Share Posted June 6, 2006 Try this: #include <GUIConstants.au3> $Main = GUICreate("Slider Progress", 400, 100, -1, -1) $slider1 = GUICtrlCreateSlider (10,10,200,20) $progress=GUICtrlCreateProgress(10,40,200,10,$PBS_SMOOTH) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg=$slider1 GUICtrlSetData ($progress,GUICtrlRead($slider1)) ;;;;;;; EndSelect WEndThink you very much this is helping me alot Link to comment Share on other sites More sharing options...
jefhal Posted June 7, 2006 Share Posted June 7, 2006 Think you very much this is helping me alotThis is fun too: #include <GUIConstants.au3> #include <GuiSlider.au3> $Main = GUICreate("Slider Progress", 400, 100, -1, -1) $slider1 = GUICtrlCreateSlider (10,10,200,20) $progress=GUICtrlCreateProgress(10,40,200,10,$PBS_SMOOTH) GUISetState(@SW_SHOW) for $i = 10 to 100 Step 10 GUICtrlSetData ($progress,$i) GUICtrlSetData ($slider1,$i) Sleep(200) Next ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format 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