Any special reasons to this happen or its just CPU missing the timing? I run U64, Windows 10 Professional 64-bit, Core i7-7700k @ stock speeds with 16GB DDR4-2400.
Code: Select all
#NoEnv
#SingleInstance force
#KeyHistory 0
ListLines Off
SetBatchLines, -1
SetWorkingDir %A_ScriptDir%
Delay = 100
Y = 50,10,15,20,25,30,35,45,50,50,50,50,50,50,50
Y_Array := StrSplit(Y, ",")
~LButton::
if GetKeyState("CapsLock", "T") = 1 {
Sleep, Delay//2
While GetKeyState("LButton") {
DllCall("mouse_event", uint, 1, int, , int, Y_Array[A_Index])
Sleep, Delay
if A_Index = % Y_Array.MaxIndex()
Break
}}
Return