2 simultaneous loops of two different sets of keys

Ask gaming related questions (AHK v1.1 and older)
Sedinus
Posts: 1
Joined: 30 Dec 2015, 18:46

2 simultaneous loops of two different sets of keys

30 Dec 2015, 18:53

I'll make it clear, I'm an absolute rookie with no real coding knowledge and all attempts at creating a working scripts only caused my game to drop to 0 fps.

Basically what I wanted to do is create a macro that, upon pressing and holding a button (Page Down in this case), would repeat the press every 2 milliseconds while spamming a similar loop for two other keys (Left and Right arrow), also with a short delay between the two. My attempts, as mentioned before, resulted in the game dropping to 0 fps. Please, help.
User avatar
Exaskryz
Posts: 2882
Joined: 17 Oct 2015, 20:28

Re: 2 simultaneous loops of two different sets of keys

30 Dec 2015, 18:56

Check out SetTimer to do two things simultaneously (as simultaneously as AHK can do in one script; it's not multithreaded).

Share what code you've attempted.

Also, it's unlikely you need every 2 milliseconds. That's 500 key strokes a second, for one key. And you want 3? You want 1500 keystrokes a second?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 83 guests