Jump to content

UDF: Animated Progress Bar


/dev/null
 Share

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>

_AniSliderTestMain()


func _AniSliderTestMain()

   _AniSliderCreateGui("Animated Slider Demo", "Status line...", "_AniSliderTestExit")   
   sleep(2000)
   while 1
      _AniSliderTestFunc1()
      _AniSliderTestFunc2()
   wend
endfunc

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


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


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

Cheers

Kurt

anislider.au3

__________________________________________________________(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
 Share

  • Recently Browsing   0 members

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