i need help Topic is solved

Ask gaming related questions (AHK v1.1 and older)
britin
Posts: 3
Joined: 03 Oct 2022, 15:38

i need help

Post by britin » 03 Oct 2022, 15:48

I need to create a macro that when I press the key that I want, the macro is activated and I press 2 keys at the same time, wait 1 second and press another 2 keys at the same time

User avatar
boiler
Posts: 16705
Joined: 21 Dec 2014, 02:44

Re: i need help

Post by boiler » 03 Oct 2022, 18:49

Everyone who starts a thread here needs help. Please edit your post to change the subject to something more specific.

User avatar
mikeyww
Posts: 26437
Joined: 09 Sep 2014, 18:38

Re: i need help

Post by mikeyww » 03 Oct 2022, 20:14

Welcome to this AutoHotkey forum!

Code: Select all

F3::
Send {a down}{b down}
Sleep, 1000
Send {b up}{a up}{c down}d{c up}
Return

britin
Posts: 3
Joined: 03 Oct 2022, 15:38

Re: i need help

Post by britin » 04 Oct 2022, 00:17

mikeyww wrote:
03 Oct 2022, 20:14
Welcome to this AutoHotkey forum!

Code: Select all

F3::
Send {a down}{b down}
Sleep, 1000
Send {b up}{a up}{c down}d{c up}
Return
Hi, thanks for your help, but I forgot something, I'll tell you exactly what I need.

When activating the macro press at the same time and keep them pressed until the end of the macro, the SPACE key and the LEFT CONTROL key, wait 1 second and press the C key and the E key at the same time.

(The SPACE and LEFT CONTROL keys must always remain pressed until the macro ends) can you help me please?

User avatar
mikeyww
Posts: 26437
Joined: 09 Sep 2014, 18:38

Re: i need help  Topic is solved

Post by mikeyww » 04 Oct 2022, 06:25

You can use the same approach as shown here. :arrow: Send to send keys. The script demonstrates how to keep a key down, or to send it up. If you use neither (e.g., as in d), then it is sent down and then up, in sequence. Sleep waits for a number of milliseconds. Try! Enjoy!

Key names

britin
Posts: 3
Joined: 03 Oct 2022, 15:38

Re: i need help

Post by britin » 04 Oct 2022, 17:51

mikeyww wrote:
04 Oct 2022, 06:25
You can use the same approach as shown here. :arrow: Send to send keys. The script demonstrates how to keep a key down, or to send it up. If you use neither (e.g., as in d), then it is sent down and then up, in sequence. Sleep waits for a number of milliseconds. Try! Enjoy!

Key names
thanks i managed to do it

Post Reply

Return to “Gaming Help (v1)”