Jump to content

Recommended Posts

Posted

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

Posted

$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

Posted

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

  • Moderators
Posted

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

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.

Posted

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
Posted

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
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...