macro recoil ?

Need help? Ask here and someone will help
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: macro recoil ?

Post by Matlo »

GIMX creator
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: macro recoil ?

Post by Matlo »

I did the code, and it works pretty well.

Your macro will have to look like this:

Code: Select all

MACRO KEYDOWN p
MAXIS 1 25
KEYDOWN p

MACRO MBUTTONDOWN BUTTON_LEFT
KEYDOWN p

MACRO MBUTTONUP BUTTON_LEFT
KEYDOWN p
The first macro generates a mouse movement to the down (it loops).
The second macro starts the first when the left mouse button is pressed.
The third stops the first as soon as the left mouse button is released.
GIMX creator
EduardoP
Posts: 21
Joined: Mon May 27, 2013 5:10 pm

Re: macro recoil ?

Post by EduardoP »

Thank you!! I'll try it when i get home. I was trying to program my G500 to do this, but i don't know if the move relative function actually send a raw movement or just a pixel movement.
EduardoP
Posts: 21
Joined: Mon May 27, 2013 5:10 pm

Re: macro recoil ?

Post by EduardoP »

Is there a way to use two conditions to start the macro? Or a way use a condition inside another condition?
Something like:

Code: Select all

MACRO KEYDOWN p
MAXIS 1 25
KEYDOWN p

MACRO MBUTTONDOWN BUTTON_LEFT & BUTTON_RIGHT
KEYDOWN p

MACRO MBUTTONUP BUTTON_LEFT
KEYUP p
or :

Code: Select all

MACRO KEYDOWN p
MAXIS 1 25
KEYDOWN p

MACRO MBUTTONDOWN BUTTON_RIGHT
     MACRO MBUTTONDOWN BUTTON_LEFT
     KEYDOWN p

MACRO MBUTTONUP BUTTON_LEFT
KEYUP p
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: macro recoil ?

Post by Matlo »

No.

But you can use macro triggers: http://gimx.fr/wiki/index.php?title=Mac ... activation.
GIMX creator
EduardoP
Posts: 21
Joined: Mon May 27, 2013 5:10 pm

Re: macro recoil ?

Post by EduardoP »

Okay, i updated the macro.c file, on GIMX>core, with the changes but the command doesn't work, probably because i'm using GIMX 0.51 on Ubuntu 11.1, i don't know. I tested another simple press key macro and it worked.
I'll upgrade my Ubuntu later and test.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: macro recoil ?

Post by Matlo »

You better should install GIMX from the sources in Ubuntu 11.10.

http://gimx.fr/wiki/index.php?title=Dev ... t_on_Linux
GIMX creator
EduardoP
Posts: 21
Joined: Mon May 27, 2013 5:10 pm

Re: macro recoil ?

Post by EduardoP »

Hey Matlo, really thanks! It was too late... i've already installed the Ubuntu 12.04, but, anyway i managed to install from the source and it worked.
EduardoP
Posts: 21
Joined: Mon May 27, 2013 5:10 pm

Re: macro recoil ?

Post by EduardoP »

But now i have latency issues, and even random crashes after a few seconds, i read many topics about the issue, tried setting the flush timeout to 16. Nothing...
I gave you some feedback at issue 170.

http://code.google.com/p/diyps3controll ... ail?id=170
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: macro recoil ?

Post by Matlo »

As said on the wiki, you should use Ubuntu 11.10 if you have latency issues with later releases.
GIMX creator
Post Reply