罗技lua实现增量压枪

2023-07-29 15:21:16 来源: 哔哩哔哩

EnablePrimaryMouseButtonEvents(true)


(相关资料图)

args = false

function OnEvent(event, arg)

if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then

up =

add =

repeat

Sleep(1)

MoveMouseRelative(0, (up))

Sleep(1)

up = up + add

until --OutputLogMessage("num=%s\n",  (up))

not IsMouseButtonPressed(3)

end

end

标签:

[责任编辑:]

最近更新