I really need help on this

Ask gaming related questions (AHK v1.1 and older)
arrechy
Posts: 6
Joined: 08 Aug 2018, 15:37

I really need help on this

08 Aug 2018, 21:22

RButton::
send T
sleep, 180
send T
sleep, 180
send T
sleep, 180
send R
sleep, 180
send F
sleep, 180

return

ok, above is an example on how my script will be, but the problem is i want this script runs when i press hold Right mouse button and ONLY stop when i releasing it(meaning i will press n hold my right mouse button) another example is like im playing an action adventure games. i want to keep kicking ass until i release my right mouse button. can any1 release my burden and thanks in advance!
User avatar
YoucefHam
Posts: 372
Joined: 24 Aug 2015, 12:56
Location: Algeria
Contact:

Re: I really need help on this

08 Aug 2018, 23:47

Code: Select all

*~RButton::
loop
{
send T
sleep, 180
send T
sleep, 180
send T
sleep, 180
send R
sleep, 180
send F
sleep, 180
	if !GetKeyState("RButton","P")
		break
}until !GetKeyState("RButton","P")
return
:wave: There is always more than one way to solve a problem. ;)
arrechy
Posts: 6
Joined: 08 Aug 2018, 15:37

Re: I really need help on this

09 Aug 2018, 06:19

I'LL TEST IT..THANKS!!!
arrechy
Posts: 6
Joined: 08 Aug 2018, 15:37

Re: I really need help on this

10 Aug 2018, 00:26

i've tried it but it didnt do wat it should be instead it wrote on chat haha. btw thanx for the effort, appreciated it
User avatar
tonkomnom
Posts: 37
Joined: 25 Jul 2018, 02:53
Contact:

Re: I really need help on this

10 Aug 2018, 04:37

Code: Select all

global break_g = 0
RButton UP::break_g = 1

RButton::
	Loop, 
	{
		SendInput, T
		Sleep, 180
		SendInput, T
		Sleep, 180
		SendInput, T
		Sleep, 180
		SendInput, R
		Sleep, 180
		SendInput, F
		Sleep, 180
		if(break_g = 1)
		{
			break_g = 0
			Return
		}
	} 
	Return
	
Keep in mind though, that most (all?) online games prohibit the use of macros and multiple keystrokes via only a single key.
arrechy
Posts: 6
Joined: 08 Aug 2018, 15:37

Re: I really need help on this

12 Aug 2018, 06:03

thx,will try this asap

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 40 guests