AutoHotkey Community

It is currently May 27th, 2012, 12:02 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: December 30th, 2010, 10:43 pm 
Offline
User avatar

Joined: May 18th, 2010, 3:10 pm
Posts: 1179
Location: Sweden
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.

Image

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.


Last edited by sumon on April 20th, 2011, 6:01 pm, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2010, 2:27 pm 
Offline
User avatar

Joined: May 18th, 2010, 3:10 pm
Posts: 1179
Location: Sweden
Updated to v. 0.91. Also added downloadlink to zipfile (with AHK script and the sounds and data).

Any comments on either the script or the idea are welcome.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 4th, 2011, 2:46 pm 
Offline
User avatar

Joined: May 18th, 2010, 3:10 pm
Posts: 1179
Location: Sweden
I received an email request asking for change in sounds, however I haven't got much feedback on the sounds yet (other than someone suggesting that the sounds with "variations" may be annoying), so is there anyone else who thinks that needs to be changed?

In order to change the sounds, obviously you can replace them in the InjectSounds folder, with sounds of your choice. A bit sneaky. I also recommend "Simple" mode if you want hearable yet short reminders.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 8th, 2011, 11:46 pm 
thx i love it :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 25th, 2012, 3:51 pm 
add a reset hotkey. everytime when queen inject it automatically reset timer.


Report this post
Top
  
Reply with quote  
PostPosted: January 30th, 2012, 6:45 am 
What about when u have multiple injects haha


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2012, 1:47 am 
am I able to use this as Protoss to count to 32 seconds to help me with macro? (ie. 2 probes finish in 34 seconds, so it reminds me to build more, help with rotation etc.)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2012, 8:50 am 
Offline
User avatar

Joined: May 18th, 2010, 3:10 pm
Posts: 1179
Location: Sweden
matze wrote:
thx i love it :D


Nice to hear that :)

WallSter wrote:
add a reset hotkey. everytime when queen inject it automatically reset timer.


Although this might be possible by tracking keypresses to automatically reset if a predefined key combination is pressed (for example, 5 5 v {click}) I do not wish to add this, since it is possibly going to cause errors.

Instead - use the "reset cycle" hotkey which is the same as that you use to start a new cycle. By default Ctrl+I. If you start injecting before or after the timer, simply press Ctrl+I directly afterwards to have the next reminder be "on time".

Anonymous wrote:
What about when u have multiple injects haha


Chaos ensues.

Anonymous wrote:
am I able to use this as Protoss to count to 32 seconds to help me with macro? (ie. 2 probes finish in 34 seconds, so it reminds me to build more, help with rotation etc.)


I'll be working on a more global timer for gaming reminders, one that can be configured and used for any interval. It will probably be posted and uploaded at http://appifyer.com too.

However, since injects are timed for each 31 seconds, I think you should be able to use it right away for Probe timing. Good luck!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: notsoobvious, rrhuffy and 11 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group