Skip to content

VitalProject/Show-LoadingScreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Show-LoadingScreen

This is a script that allows a user to show a GUI for loading while their program is working in the background It can be used both in determinate and indeterminate scenarios

Example A

Example A Gif

$exampleA = show-LoadingScreen -note "Waiting "
   $i=0
   while($i -lt 99){
   $i++
   Start-Sleep -Milliseconds 50
   }
$exampleA.Close()

Example B

Example B Gif

$exampleB = show-LoadingScreen
   $i=0
   while($i -lt 99){
   $exampleB.update($i, "$(100-$i)% Left")
   $i++
   Start-Sleep -Milliseconds 50
   }
$exampleB.Close()

Example C

Example C Gif

$exampleC = show-LoadingScreen
   $i=0
   while($i -lt 99){
   $exampleC.updatePercent($i)
   $i++
   Start-Sleep -Milliseconds 50
   }
$exampleC.Close()

Example D

Example D Gif

$exampleD = show-LoadingScreen
   $i=0
   while($i -lt 99){
   $exampleD.updateNote("$(100-$i)% Left")
   $i++
   Start-Sleep -Milliseconds 50
   }
$exampleD.Close()