Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Utility Scripts
#1
Here is a File loader with spinner and progress bar that can be integrated in other scripts
Code:
var count, currentIndex, percent, a0, a1,a2,a3,dots, wait

varexists ext1
if varexists
   !wait=ext1
else
   !wait=10
endif

!percent=0
!count=0
!a0=|
!a1=/
!a2=~
!a3=\\
!dots=

while percent<100 do

   !currentIndex=count mod 4
   ? File Loading %dots%%a%currentIndex%% [%percent%%]
   wait 30

   !count=count+1
   rndint %wait%
   if rndint < 5
       !percent=percent+1
       if percent mod 5=0
           !dots=%dots%.
       endif
   endif
done
? File Loading %dots%. [%percent%%]

free count, currentIndex, percent, a0,a1,a2,a3,dots, wait, varexists, rndint
Reply


Messages In This Thread
Utility Scripts - by flederohr - 03-17-2020, 11:52 AM
RE: Utility Scripts - by flederohr - 03-17-2020, 12:06 PM
- - by VanessaHic - 07-07-2021, 01:00 AM
- - by MyCreditDom - 01-04-2022, 09:54 PM
- - by AugustDiumb - 01-09-2022, 06:24 AM
- - by AudreyCib - 01-18-2022, 06:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)