Jump to content

UDF: Animated Progress Bar


Recommended Posts

Hi Guys,

I wrote a little tool for one of my projects. It is an animated progress bar, which run in the "background", implemented via AdlibEnable().

Once started, the progress bar will be animated until you close it. You can set the current status of your operations while your functions are running. The whole gui can be moved with the mouse, no matter where in the GUI you click, AND even while you move the GUI, the animation goes on and on :evil:

Comments are welcome if you like it as well as if you think this sucks.... :)

Here's some sample code:

#include <anislider.au3>


func _AniSliderTestMain()

   _AniSliderCreateGui("Animated Slider Demo", "Status line...", "_AniSliderTestExit")   
   while 1

func _AniSliderTestFunc1()
   local $i_Counter
   for $i_Counter = 10 to 0 step -1
          _AniSliderSetProgressState("I'm in _AniSliderTestFunc1()...           " & $i_Counter & " s")

func _AniSliderTestFunc2()
   for $i_Counter = 1 to 10 
          _AniSliderSetProgressState("I'm in _AniSliderTestFunc2()...           " & $i_Counter & " s")

func _AniSliderTestExit()
   msgbox(0,"EXIT", "This has been a AniSlider demo by /dev/null")




__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

cool! I've been wanting to write a better version of the built-in progress meter, and this gives me ideas of how to do it. Thanks

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

  • Recently Browsing   0 members

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