【发布时间】:2020-09-21 15:08:45
【问题描述】:
即使在我松开鼠标左键后,脚本有时仍会自行单击,我该如何停止。
EnablePrimaryMouseButtonEvents(true);
function OnEvent(event, arg)
if IsMouseButtonPressed(1) then
repeat
Sleep(math.random(50, 75))
PressMouseButton(1)
Sleep(math.random(50, 75))
ReleaseMouseButton(1)
until not IsMouseButtonPressed(1)
end
end
【问题讨论】:
-
为什么你使用同一个按钮来触发你正在模拟从事件内部按下的事件?
标签: lua logitech logitech-gaming-software