PicWin Progressbar with no actions

PicWin Progressbar with no actions

This is a simple picwin draw that displays a progressbar but without actions. You can add your own custom commands in the code based on your needs.

Postat de Copyright Categorie Review user Vizualizari Data
BLKoldSUN BLKoldSUN toolbar Cod testat 627 2024-08-11 09:57:10

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
  }
  ;;This closes the progressbar
  ;;window -c @Loading
  ;;echo Enter your set of commands instead of this echo please :)
}