function OnEvent(event, arg)
--OutputLogMessage("event = %s, arg = %s\n", event, arg);
startped = startped or false
if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
startped = true
end
if (event == "MOUSE_BUTTON_RELEASED" and arg == 5) then
startped = false
end
while (startped)
do
PressMouseButton(1)
Sleep(3)
MoveMouseRelative( 0, 1)
if not IsMouseButtonPressed(5) then
startped = false
ReleaseMouseButton(1)
end
end
end
将上面代码复制进罗技脚本页即可,随便写的,有点抖,大家见谅。按下G5触发