-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.ps1
60 lines (50 loc) · 2.3 KB
/
demo.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Clear-Host
function Write-Slow_Draw ($text,$color) {
if (!($color -match "Black|Blue|Cyan|DarkBlue|DarkCyan|DarkGray|DarkGreen|DarkMagenta|DarkRed|DarkYellow|Gray|Green|Magenta|Red|Yellow")) {$color = "white"}
$i = 0
while ($i -le ($text).length) {
Write-Host "$($text[$i])" -noNewline -foregroundcolor $color
Start-Sleep -m .5
++$i
}
Write-Host
}
while($true) {
Start-Sleep -s 1
Write-Slow_Draw "
``````````````````
`/////////////////:
`////:-:///////////////
`////-.:///////////////
`//////////////////////
`//////////////////////
`//////////////////////
`//////////:
`///////////::::::-
.:: .::////////:`````````
./: ---://////////-
./:-- `---://///////////:----`
.////-.` `.-/////////////////:--//`
.//////-...-///////////////////- `::`
.//////////////////////////////-
.::////////////////////////////-
`//////////////////////////:..
`////////////////////////-
``:///////////////////-``
```-://///////////```
.-----------------` -//////-.-//// .------------------------------.
.////-.` `.-//
..... ./:--` `// .--.
````` ./:.. `//..` .
.---- `--` .::::` `::::. . `----`
" Cyan
Start-Sleep -s 1
Write-Slow_Draw "`t`tOh no! how inexpressible dreadful!`n" Red
Start-Sleep -s 2
Write-Slow_Draw "`t`tA long extinct T-Rex...`n" Red
Start-Sleep -s 2
Write-Slow_Draw "`t`t...just hacked your computer" Green # Enter your ASCII text in the quotes, change the color of the text by changing Green to any color in the write-slowly function.
Start-Sleep -s 5
Clear-Host
}