Hi, I was wondering if anyone would be able to make me/ edit a script for AutoHotkey v2. Basically, I need a script like this one here:
Code: Select all
#Requires AutoHotkey v2.0
auto := False
CapsLock:: {
Global auto := !auto
SoundBeep 1000 + 500 * auto
}
#HotIf auto
LButton:: {
SetKeyDelay 15, 15
While GetKeyState(ThisHotkey, "P")
SendEvent '{' ThisHotkey '}'
}
#HotIf
F10::ExitApp
This script is toggled by CapsLock and makes a beep sound so that you know when it has been toggled on or off. When it is on, when I hold down the Left Mouse Button, it rapidly clicks it at 35 CPS (Tested via this website
https://clickspeedtest.com/clicks-per-second.html). The script works a charm, I just wish it was faster and I myself don't know how to increase the speed. I tried changing the SetKeyDelay lower, but either it didn't work or I did it wrong. If anyone could either explain to me how to customize the speed or make it to where it is faster it would be much appreciated.
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code! Also, the topic was moved to the 'Gaming' subforum.]