Page 1 of 1

Macro issue with using Analog/Dpad together with Buttons

Posted: Sat Feb 15, 2014 8:17 pm
by Shnway
I am trying to setup a macro where I will be using my PS3 Controller through my laptop through Gimx then to the PS3. I am using the DIY USB adapter on Windows 7.
I have my Left Analog setup as the Dpad buttons.

I want to setup a macro so that it will for a short period hold right on the left analog and press square three times when I press R1.
So when I press R1 it should do a combo move of -> Square, Square, Square

But I am having a problem with making the (press right) and then (press square) work together.
Instead the character just move slightly to the right and then attacks three times with square.

Here is what my macro looks like:

MACRO JBUTTON 5 (This is R1)
JBUTTONDOWN 21 (This is lstick right) *setup as a button on the Dpad*
DELAY 200
JBUTTONUP 21 (This is lstick right) *setup as a button on the Dpad*
JBUTTON 3 (This is square)
DELAY 50
JBUTTON 3 (This is square)
DELAY 50
JBUTTON 3 (This is square)

Is there a way to make the macro understand that holding the lstick right and pressing square needs to happen together?


*Update, I think I figured it out. I just needed to give it the next button first before the delay. I will keep messing with it but let me know if there are any other better ways about going about this.

Re: Macro issue with using Analog/Dpad together with Buttons

Posted: Mon Feb 17, 2014 8:50 am
by Matlo
Try something like this:

Code: Select all

MACRO JBUTTON 5
JBUTTONDOWN 21
#this delay can probably be removed
DELAY 50
JBUTTONDOWN 3
DELAY 50
JBUTTONUP 3
DELAY 50
JBUTTONDOWN 3
DELAY 50
JBUTTONUP 3
DELAY 50
JBUTTONDOWN 3
DELAY 50
JBUTTONUP 3
#this delay can probably be removed
DELAY 50
JBUTTONUP 21
You may have to adjust the delays.

Re: Macro issue with using Analog/Dpad together with Buttons

Posted: Wed Feb 19, 2014 1:38 am
by Shnway
Yea I ended up going with:

MACRO JBUTTONDOWN 5
JBUTTONDOWN 21
JBUTTON 3
DELAY 40
JBUTTON 3
DELAY 320
JBUTTON 3
JBUTTONUP 21

Only issue I run into though is after the combo is done then it wont go into another combo untill I press on the Dpad myself.

Re: Macro issue with using Analog/Dpad together with Buttons

Posted: Wed Feb 19, 2014 1:40 am
by Shnway
Also how would I go about making a macro using the Analog? I guess I would use JAXIS but there isn't enough sample macros using it.

I need the macro to go left then right really fast on the analog stick.

Re: Macro issue with using Analog/Dpad together with Buttons

Posted: Tue Feb 25, 2014 6:35 pm
by Matlo
For centered axes:

Code: Select all

#fully move axis 0 in one direction
JAXIS 0 32767
#wait 50ms
DELAY 50
#fully move axis 0 in the other direction
JAXIS 0 -32768
#move axis 0 back to its center
JAXIS 0 0
For non-centered axes:

Code: Select all

#fully move axis 0
JAXIS 0 32767
#wait 50ms
DELAY 50
#release axis 0
JAXIS 0 0