How to make one key allways pressed down, while two are spaming? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
crimson4649
Posts: 18
Joined: 23 Jul 2017, 06:04

How to make one key allways pressed down, while two are spaming?

21 Nov 2019, 21:19

Sorry for the bad topic, but I couldn't find a better way to describe it.

What I want is a script that does something like this:

*X::
send {1 down}
Loop
{
if not GetKeyState("X","P")
Break
}
send {1 up}
return


While something like this is happening:

*X::
Loop
{
if not GetKeyState("X","P")
Break
Send {2}
Sleep 20
Send {3}
Sleep 20
}
return


Basically I want to merge the two scripts in to one.
How do I go about this?

Thanks in advanced.

//Best regards.
Rohwedder
Posts: 7770
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How to make one key allways pressed down, while two are spaming?  Topic is solved

22 Nov 2019, 01:33

Hallo,
try:

Code: Select all

*x::
send {1 down}
While, GetKeyState("x","P")
{
	Send {2}
	Sleep 20
	Send {3}
	Sleep 20
}
send {1 up}
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: oktavimark and 277 guests