Hold Down Button

Ask gaming related questions (AHK v1.1 and older)
Fonscky
Posts: 13
Joined: 06 Feb 2016, 12:26

Hold Down Button

08 Jun 2017, 20:48

I need help with this, the macro does not keep the RMB pressed if I release the LShift + 1, I want the RMB to be pressed after I release the LShift + 1.
Can anyone help me with this.

I want this for Archeage, because Archeage need hold down RMB all the time.


Insert::Suspend

!1::RButton

GetKeyState, State, RButton
if state = U
Send {RButton hold down}
else
Send {RButton hold up}
User avatar
Delta Pythagorean
Posts: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: Hold Down Button

09 Jun 2017, 00:39

First off all, Exclamation points, or ! is the Alt key.
Second, Here's the code YOU want.

Code: Select all

Insert::Suspend

+1::
If (!GetKeyState("RButton", "P"))
	Send {RButton hold down}
} Else {
	Send {RButton hold up}
}
Return

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

User avatar
fischgeek
Posts: 435
Joined: 29 Jan 2014, 21:39

Re: Hold Down Button

11 Jun 2017, 15:18

Moved to Gaming.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 77 guests