Beginner looking for assistance with key spam script.

Ask gaming related questions
Posts: 1
Joined: 17 Feb 2018, 04:19

Beginner looking for assistance with key spam script.

17 Feb 2018, 04:38


I'm a complete scripting newbie, and I am trying to use AHK to improve my experience playing MMO games. Spamming abilities constantly (which is pretty much required in the particular game I play) is pretty hard on my hands so I'd like to see if AHK can do the spamming for me. There are several topics on this scattered throughout various message boards, and I found a script that I like very much, courtesy of Angrybear: Link

However, I need to make a few modifications to it, and this is where I'm stuck. After hours of trying, I haven't been very successful, and I was wondering if one of you could help me out.

Here is what I have currently:

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus

Note: I don't want ^4, ^5, ^6 to repeat, hence the additions to the keys list up top

I would like to change the script as such:
When a modifier key is pressed or released, the repeating is interupted and nothing happens until I press one of the keys listed on top.

This change would allow me to avoid accidental inputs when using an ability that is bound to the ctrl, shift, or alt layer.
(Currently, if I use an ability that's on the Shift+3 keybind, and I release Shift slightly earlier than 3, I will also queue up the ability on the 3 keybind -
while it isn't an impossible problem to navigate, but one I'd very much like to avoid.)

Any ideas?

EDIT: I was able to get what I wanted with a different script. It's pretty clunky though; I can't have it spam very fast without glitching, so I'm still interested in a more elegant way to do this.

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus

EDIT2: Problem resolved after much, much trial and error. I had to add timers to avoid key state issues with the gamepad I use. I think this is a superior keys spammer, feel free to use and modify the code however you want.

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus

Note: the timers are necessary for this code to work without issues. While I used them as a way to incorporate my input scheme, they should also be used on the keyboard keys should you be using them.

Return to “Gaming”

Who is online

Users browsing this forum: TnF and 9 guests