我正在尝试制作一个脚本,当我用鼠标左键同时按住左控制键时反复单击鼠标左键
这是我到目前为止所拥有的:
function OnEvent(event, arg, family)
OutputLogMessage("clicked event = %s, arg = %s\n", event, arg);
if event == "MOUSE_BUTTON_PRESSED" and arg == 1 and Ctrl_Down == 1 then
repeat
PressMouseButton(1) //repeat while the left mouse button down
until not PressMouseButton(1)
else ReleaseMouseButton(3) //stop the repating on left mouse button up
end
end
请注意,这是我第一次查看这种类型的编码,非常感谢任何帮助