Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

Commit 6916d19

Browse files
authored
Updating to avoid a duplicate h when updating seconds
1 parent a904789 commit 6916d19

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Powershell BB1 Auto.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ while ($made -lt $total) {
2828
Write-Host "$made Searches Made out of $total"
2929

3030
for ($i = $wait; $i -ge 1; $i--) {
31+
[Console]::SetCursorPosition(0, [Console]::CursorTop)
32+
Write-Host (" " * 80) -NoNewline
3133
[Console]::SetCursorPosition(0, [Console]::CursorTop)
3234
Write-Host "$i seconds until next search" -NoNewline
3335
Start-Sleep -Seconds 1
3436
}
35-
3637
Get-Process -Name "msedge" | ForEach-Object { $_.CloseMainWindow() } | Out-Null
3738
}
3839

0 commit comments

Comments
 (0)