Help make script

Ask gaming related questions (AHK v1.1 and older)
ozz0g
Posts: 2
Joined: 23 Nov 2017, 22:28

Help make script

23 Nov 2017, 22:36

Can you help me make a script. What i want is if i hold my left mouse click it click 5 times and stop a while an click 5 times again and so on. And the click time fast
Osprey
Posts: 453
Joined: 18 Nov 2017, 05:50

Re: Help make script

23 Nov 2017, 23:22

I think that this does what you want.

Code: Select all

~LButton::
Sleep, 400
While GetKeyState("LButton", "P")
{
    Send, {lbutton 5}
    Sleep, 5000
}
Modify the interval by changing the Sleep, 5000 line, which means that it'll wait 5000 milliseconds, or 5 seconds, before clicking 5 times again.
ozz0g
Posts: 2
Joined: 23 Nov 2017, 22:28

Re: Help make script

24 Nov 2017, 00:27

Can you make the insert button toggle on and off
Osprey
Posts: 453
Joined: 18 Nov 2017, 05:50

Re: Help make script

24 Nov 2017, 00:53

If you mean toggle the script on and off, simply add the following:

Code: Select all

Insert::Suspend
NumpadIns::Suspend
I'm not sure which Insert you mean, so that's for both.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 76 guests