Jump to content

Recommended Posts

Posted

hi!

will the functions progresson, progressset and progressoff be implemented into autoitx or is there an other way to create a progress bar with wsh vbscript?

martin

  • 2 months later...
Posted (edited)

If you want the regular Progress bar, you could try something like this:

Func doWait($time)
;; Show a progress bar untill $time is up

    $time = StringSplit($time, ".")
    $time = $time[1]
    $length = StringLen($time)
    $step = StringLeft($time,$length-3)
    $time = $step & "000"
    ProgressOn("Sleeping " & $step & " seconds.", "Press CTRL + SPACE to exit.", "0 percent", -1, -1, 2)
    For $i = 1 to 100 step 1
        Sleep ($time/100)
        ProgressSet( $i, $i & " percent")
    Next
    ProgressSet(100 , "Done", "Complete")
    Sleep (500)
    ProgressOff()
EndFunc

Then again, I'm a n00b, so I have no idea what I'm saying, just trying to help :lmao:

Edit: your better off just going here

Sorry

Edited by adri
Thanks to Wolvereness for putting up with me and helping me ^_^
  • 5 months later...
  • 1 month later...
Guest chitowndude
Posted

I created this progressbar (pure VBS)

Download the zip file in the message attachment.

Clic on SampleFast.vbs and SampleSlow.vbs to see an example.

Enjoy  :whistle:

<{POST_SNAPBACK}>

i tried to use your script and it looks like it is much more than i need. i am trying to have a progress bar run for an indefinite amount of time. i am running an application upgrade and the upgrade will automatically reboot the machine so i don't care when it ends. i just want to give the users an idea that the computer is still working on the upgrade. they like to see something happening on the screen.
Posted

i am trying to have a progress bar run for an indefinite amount of time. i am running an application upgrade and the upgrade will automatically reboot the machine so i don't care when it ends. i just want to give the users an idea that the computer is still working on the upgrade. they like to see something happening on the screen.

<{POST_SNAPBACK}>

Posted Image

  • 3 weeks later...
Guest chitowndude
Posted

Posted Image

that's great but how do i use it as pure vbscript?

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...