Hammerwatch > General Discussions > Topic Details
gtox11 Nov 30, 2013 @ 11:27am
"Turbo" keyboard keys
I just wanted to throw out some information for those who are desperately wanting to stop clicking "Up" a million times per Hammerwatch session, so here you go:
  • Download Autohotkey.[www.autohotkey.com]
  • When prompted to create a sample script, accept.
  • Select all of the text in the created sample script and delete.
  • Paste the script below into the notepad and save.
  • From now on all you need to do is open Autohotkey (if it isn't already open) and start up Hammerwatch and your Up key will be "turbo".

Enjoy.


#ifWinActive Hammerwatch ; Only run if window 'Hammerwatch' is active
{
$Up:: ; If Up is pressed

Loop ; If any of the above is true then loop below
{
if not GetKeyState("Up", "P") ; If Up is not pressed then break the loop
break
else
Send Up ; If Up is pressed with no other modifiers send Up
sleep 10 ; Time in milliseconds between key repeats
}
return
}
Showing 1-5 of 5 comments
< >
Dark May 9 @ 4:38pm 
Hey gtox, I sent you a friend invite. I would like to see if you could make a new script for AHK? one that subs the space bar for attacking, but uses the Right Mouse button to hold down and attack. I don't really care for using the keyboard for attacking. I have a script I made but you have to continually spam the mouse button to attack. I just want one that u hold down and it will continually fire.

Can you make one for that> I tried to modify the one you have here but its giving me issues.

thanks,
gtox11 May 9 @ 4:47pm 
Hey Dark. I tried not too long ago to re-play Hammerwatch and my old script was giving me problems as well. It seems that a patch they put in is preventing it from working for some reason. I could not figure out why.

Basically my character just stands there, not attacking. If I move and hold the button down at the same time then I can see the jittery movement denoting that it is at least sending the call to attack, but for some reason the attacks are not happening. I tried changing the milliseconds thinking that maybe they added a minimum action limit, but this also did not produce any results. Perhaps they are preventing third-party software in the game?

Needless to say I did not end up re-playing the game, as I cannot stand to play it without the turbo attack.

@Hammerwatch devs: Please design a better game; one that does not cause repetitive strain injury when playing the game as intended.
Dark May 9 @ 4:49pm 
Do you think you could make me a script? I would like to still give this a shot and see if I can get it working or some way around it.

Thanks dude.
gtox11 May 9 @ 4:53pm 
I already tried, and I could not figure it out. The script works, but the game is simply not responding to it. Like I said, I think they patched in something that is preventing the script from functioning.
Dark May 9 @ 4:53pm 
This one does work, so if u think u can make this auto fire. let me know. but mine does work.

Actually I use this now, and it does work, but I have to spam the mouse button to make it fire.

So, if you don't mind I would like to see your script.

^!s::Suspend ; Press Ctrl+Alt+S to Suspend. Press it again to resume.
RButton::Space
MButton::Numpad1
Last edited by Dark; May 9 @ 4:55pm
Showing 1-5 of 5 comments
< >
Per page: 15 30 50
Date Posted: Nov 30, 2013 @ 11:27am
Posts: 5