Jump to content

progress bar


 Share

Recommended Posts

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

  • Moderators

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.

Link to comment
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
Link to comment
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
Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

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