当前位置:首页 > 科技 > 正文

Apex罗技抖枪宏

Apex罗技抖枪宏  第1张

EnablePrimaryMouseButtonEvents(true)
turn=0
down=0
function OnEvent(event, arg)
    local offset
    local recovery_offset
    local downcount
    local qwq = IsMouseButtonPressed(3)
    OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
    if(event== "MOUSE_BUTTON_PRESSED" and arg==1 and turn==1 and qwq==true) then
        downcount=0
        repeat
--          OutputLogMessage("%d\n",downcount)
            downcount=downcount+1
            if(downcount<=150 and down==1) then
                MoveMouseRelative(0,1)
            end

            offset=math.random(5,5)-- 数字是抖动幅度
            recovery_offset = -offset
            Sleep(1)
            MoveMouseRelative(offset,offset)
            Sleep(1)
            MoveMouseRelative(recovery_offset,recovery_offset)
        until not IsMouseButtonPressed(1)
    end
--[[

--]]
    if(event== "MOUSE_BUTTON_PRESSED" and arg==4) then --arg是鼠标编码 4是后侧键 5是前侧键
        if(turn==0) then
            turn=1
        else
            turn=0  
        end
    end
    if(event== "MOUSE_BUTTON_PRESSED" and arg==99) then --这是下压 不建议开 力度不好调 无视就行了
        if(down==0) then
            down=1
        else
            down=0  
        end
    end
end


 附件下载
 售价:0 土豆币
 附件1
Apex罗技抖枪宏
759K
txt
蓝奏云
0
您需要 登录账户 后才能发表评论

发表评论