Macros

Need help? Ask here and someone will help
kamperkilla87
Posts: 90
Joined: Tue Mar 13, 2018 7:10 am

Re: Macros

Post by kamperkilla87 » Thu Jul 05, 2018 2:29 am

@Matlo, its working perfectly. I just have to mess with the delays a little. Other than that flawless! Im also working on another, an seem to be having an issue. I think it may need an additional macro to work properly, not really sure. Here is the macro an its content. What i want it to do is fire, switch weapon, fire, switch back to previous weapon, fire an repeat. Thanks for your time!

Bindings are as follows
e=macro activation
p=right trigger/fire
k=right bumper/switch weapon
l=left bumper/switch weapon/previous

Code: Select all

MACRO KEYDOWN e
KEYDOWN p
DELAY 30
KEYUP p
DELAY 10
KEYDOWN k
DELAY 30
KEYUP k
DELAY 30
KEYDOWN p
DELAY 30
KEYUP p
DELAY 10
KEYDOWN l
DELAY 30
KEYUP l
DELAY 30
KEYDOWN e

MACRO KEYUP e
KEYDOWN e
KEYUP p
KEYUP k
KEYUP p
KEYUP l

kamperkilla87
Posts: 90
Joined: Tue Mar 13, 2018 7:10 am

Re: Macros

Post by kamperkilla87 » Fri Jul 06, 2018 6:12 am

@Matlo i got the macro working how i want it to. Now my issue is that that macro is activated for both my profiles. In attempt to fix the issue i created a third profile thinking that would solve my issue, it didnt. Though it is working perfectly in the third profile just how i want it to. I have the macro triggered by MBUTTONDOWN_LEFT. Which is RT/FIRE in profile 1 an 2. In profile 3 i have i have RT/FIRE mapped to KEYDOWN m. Is there any possible way to get around this? Cause i really want MBUTTONDOWN_LEFT to trigger the macro but only in profile 3. An i want MBUTTONDOWN_LEFT to only be RT/FIRE in profiles 1 an 2. Thanks for your time.

Here is my config

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <controller id="1" dpi="6000" type="XOnePad">
    <configuration id="1">
      <trigger type="keyboard" id="0" name="" button_id="f" switch_back="no" delay="0"/>
      <mouse_options_list>
        <mouse name="" id="0" mode="Aiming" buffer_size="3" filter="1.00"/>
      </mouse_options_list>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_11" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_WHEELUP"/>
        </button>
        <button id="abs_axis_9" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="SPACE"/>
        </button>
        <button id="abs_axis_1" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="ESCAPE"/>
        </button>
        <button id="abs_axis_12" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_WHEELDOWN"/>
        </button>
        <button id="abs_axis_0" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="TAB"/>
        </button>
        <button id="abs_axis_2" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="BACKSPACE"/>
        </button>
        <button id="abs_axis_3" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="1"/>
        </button>
        <button id="abs_axis_4" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="2"/>
        </button>
        <button id="abs_axis_5" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="3"/>
        </button>
        <button id="abs_axis_6" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="4"/>
        </button>
        <button id="abs_axis_15" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="LSHIFT"/>
        </button>
        <button id="abs_axis_16" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_MIDDLE"/>
        </button>
        <button id="abs_axis_7" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="q"/>
        </button>
        <button id="abs_axis_10" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_X3"/>
        </button>
        <button id="abs_axis_8" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_X4"/>
        </button>
        <button id="abs_axis_13" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="p"/>
        </button>
        <button id="abs_axis_14" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_LEFT"/>
        </button>
        <button id="abs_axis_14" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="m"/>
        </button>
      </button_map>
      <axis_map>
        <axis id="rel_axis_3" label="">
          <device type="mouse" id="0" name=""/>
          <event type="axis" id="y" dead_zone="30" multiplier="3.28" exponent="0.50" shape=""/>
        </axis>
        <axis id="rel_axis_2" label="">
          <device type="mouse" id="0" name=""/>
          <event type="axis" id="x" dead_zone="30" multiplier="2.50" exponent="0.50" shape=""/>
        </axis>
        <axis id="rel_axis_1-" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="w"/>
        </axis>
        <axis id="rel_axis_1+" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="s"/>
        </axis>
        <axis id="rel_axis_0-" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="a"/>
        </axis>
        <axis id="rel_axis_0+" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="d"/>
        </axis>
      </axis_map>
      <joystick_corrections_list/>
    </configuration>
    <configuration id="2">
      <trigger type="mouse" id="0" name="" button_id="BUTTON_RIGHT" switch_back="yes" delay="0"/>
      <mouse_options_list>
        <mouse name="" id="0" mode="Aiming" buffer_size="1" filter="0.00"/>
      </mouse_options_list>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_7" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="q"/>
        </button>
        <button id="abs_axis_6" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="4"/>
        </button>
        <button id="abs_axis_5" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="3"/>
        </button>
        <button id="abs_axis_4" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="2"/>
        </button>
        <button id="abs_axis_3" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="1"/>
        </button>
        <button id="abs_axis_16" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_MIDDLE"/>
        </button>
        <button id="abs_axis_12" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_WHEELDOWN"/>
        </button>
        <button id="abs_axis_11" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_WHEELUP"/>
        </button>
        <button id="abs_axis_3" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="UP"/>
        </button>
        <button id="abs_axis_2" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="BACKSPACE"/>
        </button>
        <button id="abs_axis_6" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="LEFT"/>
        </button>
        <button id="abs_axis_5" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="DOWN"/>
        </button>
        <button id="abs_axis_4" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="RIGHT"/>
        </button>
        <button id="abs_axis_16" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="c"/>
        </button>
        <button id="abs_axis_15" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="LSHIFT"/>
        </button>
        <button id="abs_axis_12" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_X1"/>
        </button>
        <button id="abs_axis_11" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_X2"/>
        </button>
        <button id="abs_axis_9" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="SPACE"/>
        </button>
        <button id="abs_axis_3" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="LALT"/>
        </button>
        <button id="abs_axis_1" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="ESCAPE"/>
        </button>
        <button id="abs_axis_0" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="TAB"/>
        </button>
        <button id="abs_axis_10" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_X3"/>
        </button>
        <button id="abs_axis_8" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_X4"/>
        </button>
        <button id="abs_axis_13" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="p"/>
        </button>
        <button id="abs_axis_14" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_LEFT"/>
        </button>
        <button id="abs_axis_14" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="m"/>
        </button>
      </button_map>
      <axis_map>
        <axis id="rel_axis_3" label="">
          <device type="mouse" id="0" name=""/>
          <event type="axis" id="y" dead_zone="30" multiplier="3.28" exponent="0.50" shape=""/>
        </axis>
        <axis id="rel_axis_2" label="Aiming - x axis">
          <device type="mouse" id="0" name=""/>
          <event type="axis" id="x" dead_zone="30" multiplier="2.50" exponent="0.50" shape=""/>
        </axis>
        <axis id="rel_axis_0-" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="a"/>
        </axis>
        <axis id="rel_axis_1+" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="s"/>
        </axis>
        <axis id="rel_axis_0+" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="d"/>
        </axis>
        <axis id="rel_axis_1-" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="w"/>
        </axis>
      </axis_map>
      <joystick_corrections_list/>
    </configuration>
    <configuration id="3">
      <trigger type="keyboard" id="0" name="" button_id="f" switch_back="no" delay="0"/>
      <mouse_options_list>
        <mouse name="" id="0" mode="Aiming" buffer_size="1" filter="0.00"/>
      </mouse_options_list>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_9" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="SPACE"/>
        </button>
        <button id="abs_axis_8" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_X4"/>
        </button>
        <button id="abs_axis_10" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_X3"/>
        </button>
        <button id="abs_axis_7" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="q"/>
        </button>
        <button id="abs_axis_11" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="l"/>
        </button>
        <button id="abs_axis_12" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="k"/>
        </button>
        <button id="abs_axis_0" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="TAB"/>
        </button>
        <button id="abs_axis_15" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="LSHIFT"/>
        </button>
        <button id="abs_axis_12" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_WHEELDOWN"/>
        </button>
        <button id="abs_axis_11" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_WHEELUP"/>
        </button>
        <button id="abs_axis_14" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="m"/>
        </button>
        <button id="abs_axis_14" label="">
          <device type="mouse" id="0" name=""/>
          <event type="button" id="BUTTON_LEFT"/>
        </button>
      </button_map>
      <axis_map>
        <axis id="rel_axis_3" label="">
          <device type="mouse" id="0" name=""/>
          <event type="axis" id="y" dead_zone="20" multiplier="3.28" exponent="0.50" shape=""/>
        </axis>
        <axis id="rel_axis_2" label="">
          <device type="mouse" id="0" name=""/>
          <event type="axis" id="x" dead_zone="20" multiplier="2.50" exponent="0.50" shape=""/>
        </axis>
        <axis id="rel_axis_1-" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="w"/>
        </axis>
        <axis id="rel_axis_0-" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="a"/>
        </axis>
        <axis id="rel_axis_0+" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="d"/>
        </axis>
        <axis id="rel_axis_1+" label="">
          <device type="keyboard" id="0" name=""/>
          <event type="button" id="s"/>
        </axis>
      </axis_map>
      <joystick_corrections_list/>
    </configuration>
  </controller>
</root>
Here is the Macro

Code: Select all

MACRO MBUTTONDOWN BUTTON_RIGHT				
KEYDOWN p
DELAY 200
KEYUP p
DELAY 30
MBUTTONDOWN BUTTON_RIGHT
MACRO MBUTTONUP BUTTON_RIGHT
MBUTTONDOWN BUTTON_RIGHT
KEYUP p

MACRO MBUTTONDOWN BUTTON_LEFT
KEYDOWN m
DELAY 350
KEYUP m
DELAY 100
KEYDOWN k
DELAY 250
KEYUP k
DELAY 100
KEYDOWN m
DELAY 350
KEYUP m
DELAY 100
KEYDOWN l
DELAY 250
KEYUP l
DELAY 100
MBUTTONDOWN BUTTON_LEFT

MACRO MBUTTONUP BUTTON_LEFT
MBUTTONDOWN BUTTON_LEFT
KEYUP m
KEYUP k
KEYUP l

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

Re: Macros

Post by Matlo » Mon Jul 16, 2018 11:00 am

GIMX creator Donate Shop

Post Reply