Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Write-HostSimType ($output){
- $array = $output.ToCharArray()
- foreach ($l in $array){
- $delay = 30
- if (@(",",".","?","!",":",";") -Contains $l){
- $delay = 300
- } elseif ($l -Match "`b" ){
- $l = "`b `b"
- }
- Write-Host -NoNewLine $l
- Start-Sleep -Milliseconds $delay
- }
- Write-Host ""
- }
- function New-BackspaceLn ($in){
- $bs = "`b" * $in.Length
- return "$in$bs"
- }
- $initial = New-BackspaceLn "Greetings commander, let's make this quick."
- Write-HostSimType "$($initial)But first, how are you doing?"
Add Comment
Please, Sign In to add comment