Sign in to follow this  
Followers 0
Guest mjoerg

progressbar in autoitx

8 posts in this topic

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

Share this post


Link to post
Share on other sites



#3 ·  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 ^_^

Share this post


Link to post
Share on other sites

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 :)

ProgressBar.zip

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Posted Image

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

Share this post


Link to post
Share on other sites

Just use it as a .wmv ^^ And let it run ;) They won't see anything about it... :P

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