Page 1 of 1

MACRO TRIGGER activate/deactivate

Posted: Sun Jun 15, 2014 11:05 am
by shota
Hello

I am in trouble with macro activate/deactivate.

I want to switch rapidfire macro ON/OFF when pressing Joystick (which is sixaxis controller).
After emulating start, pressing R1 let macro start. It seems OK.
But when I press R3, I cannot switch ON/OFF.

Would you help me, please?
Sorry for my poor English

rapidfire.txt

Code: Select all

MACRO JBUTTONDOWN 11  #R1 bind
TRIGGER JBUTTONDOWN 2 #R3, switch ON/OFF
KEYDOWN t #R1 
DELAY 190
KEYUP t #R1 
DELAY 50
JBUTTONDOWN 11 #MACRO LOOP

MACRO JBUTTONUP 11
TRIGGER JBUTTONDOWN 2 #R3, switch ON/OFF
KEYUP t
JBUTTONDOWN 11

Re: MACRO TRIGGER activate/deactivate

Posted: Mon Jun 16, 2014 6:06 pm
by Matlo
Adding an empty macro with a different trigger should work.

Re: MACRO TRIGGER activate/deactivate

Posted: Wed Jun 18, 2014 12:09 am
by shota
Thanks Mr.Matlo

I modified like this.
Acutually, "MACRO JBUTTONDOWN 11" is default "inactive".
And after pressing R3, it get become active.

But what I want to do is changing ON/OFF the macro only pressing R3.
Now, I have to push F7 button to inactivate.
Can GIMX do this?

Code: Select all

#this is empty macro
MACRO KEYDOWN i
TRIGGER F7

MACRO JBUTTONDOWN 11  #R1 bind
TRIGGER JBUTTONDOWN 2 #R3, switch ON/OFF
KEYDOWN t #R1 
DELAY 190
KEYUP t #R1 
DELAY 50
JBUTTONDOWN 11 #MACRO LOOP

MACRO JBUTTONUP 11
TRIGGER JBUTTONDOWN 2 #R3, switch ON/OFF
KEYUP t
JBUTTONDOWN 11

Re: MACRO TRIGGER activate/deactivate

Posted: Wed Jun 18, 2014 9:11 am
by Matlo
Not yet. But it should be easy to add this functionality.

I added this in the issue tracker: https://github.com/matlo/GIMX/issues/253

Re: MACRO TRIGGER activate/deactivate

Posted: Wed Jun 18, 2014 1:44 pm
by shota
Thanks Mr.Matlo (^_^)
I hope that this switch function will be added and thank you for your kind advice!

Re: MACRO TRIGGER activate/deactivate

Posted: Wed Jun 18, 2014 4:32 pm
by Matlo
I am thinking about adding two optional directives:

Code: Select all

TOGGLE YES/NO
INIT ON/OFF

Re: MACRO TRIGGER activate/deactivate

Posted: Wed Jun 18, 2014 6:08 pm
by shota
good idea (^_^)
It seems to be clear.

And I forget telling you that I used "GIMX 1.12".
Could you continue to update for PS3?

Thank you.