Help Script V2

Ask gaming related questions
Melipilla
Posts: 2
Joined: 19 Sep 2022, 09:41

Help Script V2

Post by Melipilla » 11 Mar 2024, 16:03

Hello, I have this script that is used to give many clicks in the least possible delay. But I have a problem and I need help, I want to activate and deactivate it with F12, what should I add?

Code: Select all

LButton::
{
SetMouseDelay(-1)
Click(4)
Return
}

RButton::LButton
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]


Also, can this code be improved even more?

User avatar
mikeyww
Posts: 26983
Joined: 09 Sep 2014, 18:38

Re: Help Script V2

Post by mikeyww » 11 Mar 2024, 16:29

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
on := False

F12:: {
 Global on ^= True
 SoundBeep 1000 + 500 * on
}

#HotIf on
LButton::SetMouseDelay(-1), Click(4)
#HotIf
The mouse delay here applies only if the send mode is not Input.
If SetMouseDelay is not used, the default delay is 10 for the traditional SendEvent mode and -1 for SendPlay mode.
Source: SetMouseDelay - Syntax & Usage | AutoHotkey v2

Post Reply

Return to “Gaming”