求助,我写了一段按住鼠标左键重复左键连点的宏,但是运行时松开左键不能跳出循环,该怎么改?
if (event == "MOUSE_BUTTON_PRESSED" and arg ==1 ) then
repeat
PressMouseButton(1)
Sleep(20)
ReleaseMouseButton(1)
until not IsMouseButtonPressed (1)
end
if (event == "MOUSE_BUTTON_PRESSED" and arg ==1 ) then
repeat
PressMouseButton(1)
Sleep(20)
ReleaseMouseButton(1)
until not IsMouseButtonPressed (1)
end