Skip to content

Instantly share code, notes, and snippets.

@jonathascosta
Created January 7, 2021 19:07
Show Gist options
  • Save jonathascosta/e64598bbb018a24ec99272e00503eab2 to your computer and use it in GitHub Desktop.
Save jonathascosta/e64598bbb018a24ec99272e00503eab2 to your computer and use it in GitHub Desktop.
Starcraft 2 basic timer for zergs
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
}
@jonathascosta
Copy link
Author

jonathascosta commented Jan 7, 2021

StarCraft 2 Timer

Runs on Powershell.

  1. Each 5 seconds plays a short beep (200 millisseconds) to remember you to change your focus.
  2. Each 30 seconds plays a longer beep (1.2 seconds) and says "Inject larva and spread creep"
  3. Each 2 minutes plays a long beep (4.8 seconds) and says "Scout"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment