Help with script please(rapid fire)

Ask gaming related questions (AHK v1.1 and older)
mdrake1
Posts: 29
Joined: 18 Oct 2020, 07:15

Help with script please(rapid fire)

Post by mdrake1 » 05 May 2021, 12:42

I have a rapid fire script for left mouse button that works fine, but i want one that when i press left mouse button it rapid fire hit's the letter r. So i need to change this script to instead of left click rapid firing left click to instead rapid fire "r" instead.

Code: Select all

1::Suspend
LButton::
Loop
{
SetMouseDelay 30
Click
If (GetKeyState("LButton","P")=0)
Break
}
Last edited by BoBo on 05 May 2021, 13:12, edited 1 time in total.
Reason: Moved to Gaming section. Added [code][/code]-tags.
User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: Help with script please(rapid fire)

Post by mikeyww » 05 May 2021, 14:50

Code: Select all

LButton::
SetKeyDelay, 20
While GetKeyState("LButton", "P")
 Send r
Return
mdrake1
Posts: 29
Joined: 18 Oct 2020, 07:15

Re: Help with script please(rapid fire)

Post by mdrake1 » 07 May 2021, 11:45

Thanks
Post Reply

Return to “Gaming Help (v1)”