How to Hold down ww? Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Axizww
Posts: 5
Joined: 04 Jan 2023, 22:54

How to Hold down ww?

Post by Axizww » 04 Jan 2023, 23:05

I want a Macro that hold down ww.
For a game im playing in that game i need to press ww to run but i want only press w to run.
and when i let go w it stop running.

Can you help me ?

ntepa
Posts: 439
Joined: 19 Oct 2022, 20:52

Re: How to Hold down ww?  Topic is solved

Post by ntepa » 05 Jan 2023, 01:14

try this:

Code: Select all

$w::
	Send w
	Sleep 50
	Send {w down}
	KeyWait w
	Send {w up}
Return

Axizww
Posts: 5
Joined: 04 Jan 2023, 22:54

Re: How to Hold down ww?

Post by Axizww » 05 Jan 2023, 03:00

@ntepa thank you so much it works.

Pacifista
Posts: 46
Joined: 17 Jan 2022, 16:17

Re: How to Hold down ww?

Post by Pacifista » 07 Jan 2023, 18:18

Code: Select all

Mbutton::
	Send q
	Sleep 50
	Send {Lbutton down}
	KeyWait Mbutton Up
	Send {Lbutton up}
	send {q}
Return
I'm trying to do this.

when i press and hold mbutton i want q to be pressed once and from there i want my mouse to hold left click till i release mbutton.

and after that it'll press once to q button when i lift the mbutton.

thats how i will be completed the firing with my character.

ntepa
Posts: 439
Joined: 19 Oct 2022, 20:52

Re: How to Hold down ww?

Post by ntepa » 07 Jan 2023, 21:31

@Pacifista Change KeyWait Mbutton Up to KeyWait Mbutton

Pacifista
Posts: 46
Joined: 17 Jan 2022, 16:17

Re: How to Hold down ww?

Post by Pacifista » 08 Jan 2023, 06:26

ntepa wrote:
07 Jan 2023, 21:31
@Pacifista Change KeyWait Mbutton Up to KeyWait Mbutton
Oh god its working like a charm, thx.

Post Reply

Return to “Gaming Help (v1)”