Sign in to follow this  
Followers 0
/dev/null

UDF: Animated Progress Bar

5 posts in this topic

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 *

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Very Nice UDF. Just tried it and it looks really cool.

Good to make a script more unique by not using the standard progress bar. :)


HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites

Nice... and thanks for the help too!


NEWHeader1.png

Share this post


Link to post
Share on other sites

neat!! :)


FootbaG

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