Need help to creat a simple macro

Need help? Ask here and someone will help
Post Reply
aftabparast72
Posts: 6
Joined: Fri Apr 02, 2021 8:01 pm

Need help to creat a simple macro

Post by aftabparast72 »

hi
i made this anti recoil macro and it works fine but the problem is how can i stop MAXIS 0 from moving after little time.

i simply need to stop the MAXIS 0 2 command after a 100ms and keep the MAXIS 1 2 till i release h button(obviously my fire button).

this is the macro:

MACRO KEYDOWN h
MAXIS 1 2
MAXIS 0 2
KEYDOWN h

MACRO MBUTTONDOWN BUTTON_LEFT
KEYDOWN h

MACRO MBUTTONUP BUTTON_LEFT
KEYDOWN h
KEYUP h

i tried to use DELAY like below :

MACRO KEYDOWN h
MAXIS 1 2
MAXIS 0 2
DELAY 100
MAXIS 0 0

KEYDOWN h

MACRO MBUTTONDOWN BUTTON_LEFT
KEYDOWN h

MACRO MBUTTONUP BUTTON_LEFT
KEYDOWN h
KEYUP h

but it completely disables the anti recoil.
aftabparast72
Posts: 6
Joined: Fri Apr 02, 2021 8:01 pm

Re: Need help to creat a simple macro

Post by aftabparast72 »

any thing?!! :(
Cybereu
Posts: 182
Joined: Sun Jul 10, 2011 1:10 pm

Re: Need help to creat a simple macro

Post by Cybereu »

I think it can be solved by spliting MAXIS 1 2 and MAXIS 0 2 on two different conditions.

KEYDOWN h for MAXIS 1
KEYDOWN j for MAXIS 0


Something like:

Code: Select all

MACRO KEYDOWN h
MAXIS 1 2
KEYDOWN h

MACRO MBUTTONDOWN BUTTON_LEFT
KEYDOWN h

MACRO MBUTTONUP BUTTON_LEFT
KEYDOWN h
KEYUP h

MACRO KEYDOWN h
MAXIS 1 2
DELAY 100
KEYDOWN h

MACRO MBUTTONDOWN BUTTON_LEFT
KEYDOWN h

MACRO MBUTTONUP BUTTON_LEFT
KEYDOWN h
KEYUP h

Code: Select all

MACRO KEYDOWN j
MAXIS 0 2
DELAY 100
MAXIS 0 0

MACRO MBUTTONDOWN BUTTON_LEFT
KEYDOWN j

MACRO MBUTTONUP BUTTON_LEFT
KEYDOWN j
KEYUP j
aftabparast72
Posts: 6
Joined: Fri Apr 02, 2021 8:01 pm

Re: Need help to creat a simple macro

Post by aftabparast72 »

thank u very much for ur reply

unfortunately ur config is not working at all. the problem is coming from DELAY

when i clean it or change its place to top of the MAXIS 1 2 config works (not yours) i mean like this:

MACRO KEYDOWN h
DELAY 100
MAXIS 1 2

KEYDOWN h

MACRO MBUTTONDOWN BUTTON_LEFT
KEYDOWN h

MACRO MBUTTONUP BUTTON_LEFT
KEYDOWN h
KEYUP h

this config starts to move like pixel by pixel. (not what i asked)

and about the first config u send: it does not work because of u use 2 macro loops. it does not matter if i change DELAYS place!!!
i don't know what to do anymore. this is not so complicated macro...
Cybereu
Posts: 182
Joined: Sun Jul 10, 2011 1:10 pm

Re: Need help to creat a simple macro

Post by Cybereu »

You can use external software to do the macro, on gimx-launcher change input to windows events, some macro programs should work.
aftabparast72
Posts: 6
Joined: Fri Apr 02, 2021 8:01 pm

Re: Need help to creat a simple macro

Post by aftabparast72 »

can u tell me program names? i googled this but unfortunately no results!

if anyone can tell me a software for recoil ...

its really ennoying to have such a good device but u cant use anti recoil

Macros are not that useful because it cant be lower than 1 and ...
Cybereu
Posts: 182
Joined: Sun Jul 10, 2011 1:10 pm

Re: Need help to creat a simple macro

Post by Cybereu »

I assume you are using Windows, the most widely use for that purpose is Autohotkey.
You may need to choose Input: Windows Events, on gimx-lancher.
aftabparast72
Posts: 6
Joined: Fri Apr 02, 2021 8:01 pm

Re: Need help to creat a simple macro

Post by aftabparast72 »

no its raspberry pi gimx. but i will look after if it has rpi version and similars ...

thank you. if u have some tools for rpi i appreciate to tell me names
Post Reply