Page 2 of 3
Re: macro recoil ?
Posted: Thu Jun 06, 2013 6:46 pm
by Matlo
Re: macro recoil ?
Posted: Fri Jun 07, 2013 6:05 am
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.
Re: macro recoil ?
Posted: Fri Jun 07, 2013 5:48 pm
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.
Re: macro recoil ?
Posted: Fri Jun 07, 2013 6:17 pm
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
Re: macro recoil ?
Posted: Fri Jun 07, 2013 7:09 pm
by Matlo
Re: macro recoil ?
Posted: Fri Jun 07, 2013 7:28 pm
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.
Re: macro recoil ?
Posted: Sat Jun 08, 2013 5:03 pm
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
Re: macro recoil ?
Posted: Sat Jun 08, 2013 7:50 pm
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.
Re: macro recoil ?
Posted: Sun Jun 09, 2013 12:25 pm
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
Re: macro recoil ?
Posted: Sun Jun 09, 2013 3:54 pm
by Matlo
As said on the wiki, you should use Ubuntu 11.10 if you have latency issues with later releases.