Sign in to follow this  
Followers 0
dakota

progress bar

8 posts in this topic

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

Share this post


Link to post
Share on other sites



$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... :D


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Your kidding right? :D

http://www.rentacoder.com


[center]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.[/center]

Share this post


Link to post
Share on other sites

Try this: :D

#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

Share this post


Link to post
Share on other sites

Try this: :D

#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
Think you very much this is helping me alot

Share this post


Link to post
Share on other sites

Think you very much this is helping me alot

This 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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0