Progress bar

By ch1zra on Jan 25, 2005

Nice progress bar. Quite useless if used alone, but it can be a nice addition to scripts.

alias progressbar {
  window -ahCkodp +fe @Loading  1 1 255 40
  drawfill @Loading 1 1 1 1 
  var %i 1
  while (%i <= 255) {
    drawline -r @Loading $rgb(%i,$calc(255 - %i),0) 2 $calc(0 + %i)  20 $calc(0 + %i) 40
    drawtext -r @Loading $rgb(%i,$calc(255 - %i),0) Arial 12 55 0 Loading, please wait...
    inc %i
    var %t 1
    while (%t <= 150) { inc %t } 
    ; replace the value above to change the speed, lower means faster
  }
  window -c @Loading
  echo Enter your set of commands instead of this echo please :)
}

Comments

Sign in to comment.
morpher   -  Jan 28, 2005

it\'s nice, but i changed something to make it nicer (at least to my taste): i added the +d switch on the window, and am now drawing this: { drawline -r @Loading $rgb(%i,$calc(255 - %i),0) 2 $calc(0 + %i) 0 $calc(0 + %i) 20 | drawtext -r @Loading $rgb(255,255,255) Verdana 9 110 2 Loading! } but anyway, nice work!

 Respond  
morpher   -  Jan 28, 2005

it\'s nice, but i changed something to make it nicer (at least to my taste):

 Respond  
IXeZion   -  Jan 27, 2005

Very nice :P

 Respond  
Stealth   -  Jan 26, 2005

nice script :)

 Respond  
splatted   -  Jan 25, 2005

lol, so do I and english actually is my first language. anyway, good work.

 Respond  
ch1zra   -  Jan 25, 2005

*only (engl. is not my native, so I sometimes get all messy and lost in words and phrases :P)

 Respond  
ch1zra   -  Jan 25, 2005

it depends of the process... but i thought of this mainly as \"makeup\"...

 Respond  
splatted   -  Jan 25, 2005

Love the bar. Only question:- what if the process called up also freezes mirc for few seconds too? Bar is already at 100% before process begins. Any way of changing it to actually indicate where the process is up to?

 Respond  
ch1zra   -  Jan 25, 2005

the idea was to freeze mIRC while working... cause then user gets the feeling that script is processing sometnihg really important... ;]

 Respond  
xDaeMoN   -  Jan 25, 2005
 Respond  
xDaeMoN   -  Jan 25, 2005

Nice :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.