Holding down character keys

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Gamer

Holding down character keys

Post by Gamer » Mon Mar 08, 2004 6:22 am

I am trying to create some macros for some games. I am running into a problem. I saw some posts with similar problems. In most first person shooter games you can move your character by pressing W for up, A for left, D for right and S for backwards.

Certain combinations create will perform a desired action (ex Hitting D twice will make your character jump quickly to the right.)

I have tried the following:

Let>SK_DELAY=250
send>dd

and I also tried

Send>d
wait>.25
Send>d

Neither work to make the character move. But during in game text if I hit the macro DD will appear (So i know the Set focus is correct).

The problem I see is there is no way to hold down a character key for a set amount of time (similar to Press Shift, Release combo). An example would be:

Press>d
wait>0.25
Release>d

Press>d
wait>0.25
Release>d

The desired result being d being held down for .25 seconds two times in a row.

Is there a way for me the create a macro that holds down the D key for 0.25 seconds, releases it then hits the D key again? Currently the my code hits the D key (without holding it down for set time), waits 0.25 seconds, then hits the D key again.

Thanks in advanced.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts