Created
January 7, 2021 19:07
-
-
Save jonathascosta/e64598bbb018a24ec99272e00503eab2 to your computer and use it in GitHub Desktop.
Starcraft 2 basic timer for zergs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -AssemblyName System.Speech | |
$cycle = 1 | |
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer | |
while (1) | |
{ | |
if ($cycle % 24 -eq 0) | |
{ | |
[console]::beep(4800, 4800); | |
$speak.Speak('Scout'); | |
} | |
elseif ($cycle % 6 -eq 0) | |
{ | |
[console]::beep(1200, 1200); | |
$speak.Speak('Inject larva and spread creep'); | |
} | |
else | |
{ | |
[console]::beep(200, 200); | |
} | |
$cycle++; | |
Start-Sleep -Seconds 5 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
StarCraft 2 Timer
Runs on Powershell.