So, a guy said "Damn, I need to learn to inject better, there is a timer
online but I can't tab out of the game to use it, and it's too silent" and I felt the urge to challenge myself by creating an AHK script for this purpose.
Briefly, for those who do not play Starcraft II, this is a timer that goes off every 31 seconds, plays a sound to remind the player to perform a specific action, the "Inject Larvae". Basically, when activated (by ctrl+i) it will give a sound each 31 seconds, which corresponds roughly to the time it takes before you can inject your hatchery again. (Inject takes 28 sec to finish, Queens gain 25 energy in 32 seconds, so roughly).
There's also some settings to change to MULE-reminder or Chronoboost-reminder, and I might add some further functionality, such as simplifying the sounds.
As my code is modified for my own needs (including other scripts of mine, f.ex.), ask me if you want the source code.
If you want to try it, I recommend downloading the exe-file so you don't have to manually extract the sounds and icons. It's available at
http://www.autohotkey.net/~sumon/apps/injecttime/InjectTime.exe.
EDIT: Updated the .exe and ahk to latest version. EDIT2: Severe improvements, link is now at Authotkey.net.
As a sidenote, this script does not interact in any way with Starcraft II and does not add any automation, it should neither be "wrong" or "bannable", even if I suggest that you do not rely on such a script. Instead use it to practise to improve your own macro. (You're not gonna get perfect with the script anyway, just get reminded occasionally).
So, I paste the disclaimer from the Readme.txt here:
Quote:
DISCLAIMER:
This script does in no way interact with Starcraft II, and should thus not break any EULA or Battle.net rules. It is simply a clock with a regular alarm that plays in the background on your computer. However - even if InjectScript should not break any terms, use it at your own risk. I bear no responsibility. It is not recommended to use for competative play, and also keep in mind that some gamers might find it "unfair play" to use tools such as this in gaming.