Macro invalid

Need help? Ask here and someone will help
Post Reply
rodit
Posts: 2
Joined: Tue Jun 25, 2019 1:48 am

Macro invalid

Post by rodit »

I have tried making a macro that converts a toggle control to a hold control using the following macro:

Code: Select all

MACRO KEYDOWN Q
KEYDOWN O
DELAY 4
KEYUP O

MACRO KEYUP Q
KEYDOWN O
DELAY 4
KEYUP O

MACRO KEYDOWN E
KEYDOWN P
DELAY 4
KEYUP P

MACRO KEYUP E
KEYDOWN P
DELAY 4
KEYUP P
So when I press Q down, the macro presses O and releases it, and the same happens when I release Q. The same thing for E with P. I have bound O and P to the controls that I am converting from toggle to hold using gimx fps config.

However, when I start GIMX (I am using it for mouse and keyboard on Xbox One), I get the following in the log:

Code: Select all

Warning: A device name is empty. Multiple mice and keyboards are not managed.
Dump of C:\Users\rodit\AppData\Roaming//gimx//macros/configs.txt
siege-default.xml/holdlean.txtDump of C:\Users\rodit\AppData\Roaming//gimx//macros/holdlean.txt
MACRO KEYDOWN Q
Warning: invalid line: MACRO KEYDOWN Q
KEYDOWN O
Warning: invalid line: KEYDOWN O
DELAY 4
Warning: invalid line: DELAY 4
KEYUP O
Warning: invalid line: KEYUP O

MACRO KEYUP Q
Warning: invalid line: MACRO KEYUP Q
KEYDOWN O
Warning: invalid line: KEYDOWN O
DELAY 4
Warning: invalid line: DELAY 4
KEYUP O
Warning: invalid line: KEYUP O

MACRO KEYDOWN E
Warning: invalid line: MACRO KEYDOWN E
KEYDOWN P
Warning: invalid line: KEYDOWN P
DELAY 4
Warning: invalid line: DELAY 4
KEYUP P
Warning: invalid line: KEYUP P

MACRO KEYUP E
Warning: invalid line: MACRO KEYUP E
KEYDOWN P
Warning: invalid line: KEYDOWN P
DELAY 4
Warning: invalid line: DELAY 4
KEYUP PWarning: invalid line: KEYUP PWarning: failed to process file C:\Users\rodit\AppData\Roaming//gimx//macros/holdlean.txt
Press the guide button of the controller for 2 seconds.
rounding timer period to 3968
which indicates that the macro is invalid. The macro obviously then does not work in game. What am I doing wrong?
rodit
Posts: 2
Joined: Tue Jun 25, 2019 1:48 am

Re: Macro invalid

Post by rodit »

I solved the issue myself by reading the wiki more carefully: the event ids are case sensitive so my E Q O and P had to be e q o and p.
Post Reply