Macro question

Need help? Ask here and someone will help
Post Reply
HIGH5
Posts: 105
Joined: Sun Sep 11, 2011 1:51 pm
Location: TLV

Macro question

Post by HIGH5 »

Hey guys,
I need a macro that will press the "1" key two times very fast.

I didn't understand the tut, so can someone simplify it :oops:
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Macro question

Post by Matlo »

Could you please tell us what you don't understand?
GIMX creator
HIGH5
Posts: 105
Joined: Sun Sep 11, 2011 1:51 pm
Location: TLV

Re: Macro question

Post by HIGH5 »

I need the macro to press the "1" key two times whenever I press it.

How to do the macro code?

Code: Select all

#Defines the action that triggers the macro execution
MACRO 1
#Performs a keystroke (key down + delay 50ms + key up)
KEY 1
#Sleep 50ms
DELAY 50
#Perform a key down
KEYDOWN 1
KEYUP 1
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Macro question

Post by Matlo »

You have to use two different keys: one as the trigger and the other as the action event.
You also have to add a delay between a KEYDOWN and a KEYUP for the same key.

Code: Select all

#Defines the action that triggers the macro execution
MACRO 1
KEY 2
DELAY 100
KEY 2
Replace 1 with 2 in your config file, and adjust the delay to your liking.
GIMX creator
Post Reply