Page 1 of 1

Hold Down Button

Posted: 08 Jun 2017, 20:48
by Fonscky
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}

Re: Hold Down Button

Posted: 09 Jun 2017, 00:39
by Delta Pythagorean
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

Re: Hold Down Button

Posted: 11 Jun 2017, 15:18
by fischgeek
Moved to Gaming.