Auto Sprint Macro

Need help? Ask here and someone will help
Post Reply
YellowBull
Posts: 2
Joined: Thu Jul 30, 2020 12:10 pm

Auto Sprint Macro

Post by YellowBull »

GIMX Team,

I am having a hard time getting my simple macro to work. I searched the forums and didn't find my answer. I tried mapping one key to multiple buttons, but I couldn't get it to work so I decided to try a macro. If this "auto-sprint" works without a macro, please let me know.

I want to press "e" on my keyboard and send two actions as a joystick (XInput Controller). First event is to walk forward (JAXIS lstick up) on the left stick and the second event is to push the a button to initiate sprint (JBUTTONDOWN 0).

MACRO KEYDOWN e
JAXIS lstick up
DELAY 10
JBUTTONDOWN 0

I would appreciate any ideas or suggestions.

Thank you.

Cybereu
Posts: 153
Joined: Sun Jul 10, 2011 1:10 pm

Re: Auto Sprint Macro

Post by Cybereu »

You can assign more the one key to one button and vice versa on Gimx-config.
Your macro seems to have syntax error

Code: Select all

JAXIS <ID> <value>
<ID> as displayed in gimx-config
<value> is something between -32768 and 32767

YellowBull
Posts: 2
Joined: Thu Jul 30, 2020 12:10 pm

Re: Auto Sprint Macro

Post by YellowBull »

Cybereu, thank you for the feedback. My game won't sprint if you assign one key to two buttons.

If anyone is interested, the macro below works for me (I'm strafing with esdf instead of wasd and have RETURN mapped to joystick "A"). I may tweak it, but for now this is what I'm using.

MACRO KEYDOWN e
JAXIS lstick up
DELAY 5
KEYDOWN RETURN
DELAY 80
KEYUP RETURN

Hope this helps someone.

Post Reply