logitech鼠标宏吧 关注:507贴子:1,957
  • 7回复贴,共1

罗技鼠标宏可以不用罗技键盘么?

只看楼主收藏回复

罗技鼠标宏可以不用罗技键盘么?


来自Android客户端1楼2019-12-28 18:03回复
    可以,我从网上复制了一个只用鼠标就可以实现切换多种压枪力度
    -------------------------------------------
    local Mod2 = false
    local Mod3 = false
    local Mod4 = false
    local Mod5 = false
    local Mod7 = false
    local Mod8 = false
    local click = false
    function OnEvent(event, arg)
    OutputLogMessage("event = %s, arg = %d\n", event, arg)
    EnablePrimaryMouseButtonEvents(true)
    Mod2 = 6 and 2
    Mod3 = 6 and 3
    Mod4 = 6 and 4
    Mod5 = 6 and 5
    Mod7 = 6 and 7
    Mod8 = 6 and 8
    -------------注意事项------------------------------------
    ----压枪强度正数为下压枪,负数为上抬枪。
    ----如果发现开启后按住左键或者single键后鼠标只移动一下的情况,请把罗技软件退出并用管理员方式启动。
    ------------------开始压枪--------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 6) then
    Hacker = true
    OutputLogMessage("Hacker_on ")
    end
    ----------------LVOA-C-------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod2 and not IsModifierPressed("lalt")) then
    Mod2 = true
    OutputLogMessage("Mod2_on ")
    -------全自动---------
    zyx = 28----首发强度
    xzy = 8----持续强度
    yxz = 10----压枪间隔
    end
    -----------------SUB GUN------------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod3 and not IsModifierPressed("lalt")) then
    Mod3 = true
    OutputLogMessage("Mod3_on")
    -------全自动---------
    zyx = 2----首发强度
    xzy = 1----持续强度
    yxz = 30----压枪间隔
    end
    ---------------AK----------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod4 and not IsModifierPressed("lalt")) then
    Mod4 = true
    OutputLogMessage("Mod4_on")
    -------全自动---------
    zyx = 75----首发强度
    xzy = 20----持续强度
    yxz = 10----压枪间隔
    end
    ----------------4X-----------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod5 and not IsModifierPressed("lalt")) then
    Mod5 = true
    OutputLogMessage("Mod5 on")
    -------全自动---------
    zyx = 120----首发强度
    xzy = 20----持续强度
    yxz = 10----压枪间隔
    end
    ------------------Single--------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod7 and not IsModifierPressed("lalt")) then
    Mod7 = true
    OutputLogMessage("Mod7_on")
    -------全自动---------
    zyx = 50----首发强度
    xzy = 10----持续强度
    yxz = 10----压枪间隔
    end
    -----------------Mod8------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod8 and not IsModifierPressed("lalt")) then
    Mod8 = true
    OutputLogMessage("Mod8 on")
    -------全自动---------
    zyx = 80----首发强度
    xzy = 100----持续强度
    yxz = 10----压枪间隔
    end
    ----------------------------------------------
    ------------Mod2------------------------
    ----------------------------------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and Mod2 and Hacker and not IsModifierPressed("lalt")) then
    Sleep(20)
    MoveMouseRelative(0, zyx)
    repeat
    MoveMouseRelative(0, xzy)
    Sleep(yxz)
    until not IsMouseButtonPressed(1)
    end
    ----------------------------------------------
    ------------Mod3------------------------
    ----------------------------------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and Mod3 and Hacker and not IsModifierPressed("lalt")) then
    Sleep(20)
    MoveMouseRelative(0, zyx)
    repeat
    MoveMouseRelative(0, xzy)
    Sleep(yxz)
    until not IsMouseButtonPressed(1)
    end
    ----------------------------------------------
    ------------Mod4------------------------
    ----------------------------------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and Mod4 and Hacker and not IsModifierPressed("lalt")) then
    Sleep(20)
    MoveMouseRelative(0, zyx)
    repeat
    MoveMouseRelative(0, xzy)
    Sleep(yxz)
    until not IsMouseButtonPressed(1)
    end
    ----------------------------------------------
    ------------Mod5------------------------
    ----------------------------------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and Mod5 and Hacker and not IsModifierPressed("lalt")) then
    Sleep(20)
    MoveMouseRelative(0, zyx)
    repeat
    MoveMouseRelative(0, xzy)
    Sleep(yxz)
    until not IsMouseButtonPressed(1)
    end
    ----------------------------------------------
    ------------Mod7------------------------
    ----------------------------------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and Mod7 and Hacker and not IsModifierPressed("lalt")) then
    Sleep(20)
    MoveMouseRelative(0, zyx)
    repeat
    MoveMouseRelative(0, xzy)
    Sleep(yxz)
    until not IsMouseButtonPressed(1)
    end
    ----------------------------------------------
    ------------Mod8------------------------
    ----------------------------------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and Mod8 and Hacker and not IsModifierPressed("lalt")) then
    Sleep(20)
    MoveMouseRelative(0, zyx)
    repeat
    MoveMouseRelative(0, xzy)
    Sleep(yxz)
    until not IsMouseButtonPressed(1)
    end
    --------------------Hacker_Close------------------
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 9) then
    Hacker = false
    OutputLogMessage("Hacker_Close ")
    end
    ---------------------------------
    ---------------------------------
    ---------------------------------
    end


    IP属地:湖南2楼2020-01-10 01:16
    收起回复


      IP属地:北京来自iPhone客户端4楼2021-04-09 01:05
      回复
        可以,我从网上复制了一个只用鼠标就可以实现切换多种压枪力度
        -------------------------------------------
        local Mod2 = false
        local Mod3 = false
        local Mod4 = false
        local Mod5 = false
        local Mod7 = false
        local Mod8 = false
        local click = false
        function OnEvent(event, arg)
        OutputLogMessage("event = %s, arg = %d\n", event, arg)
        EnablePrimaryMouseButtonEvents(true)
        Mod2 = 6 and 2
        Mod3 = 6 and 3
        Mod4 = 6 and 4
        Mod5 = 6 and 5
        Mod7 = 6 and 7
        Mod8 = 6 and 8
        -------------注意事项------------------------------------
        ----压枪强度正数为下压枪,负数为上抬枪。
        ----如果发现开启后按住左键或者single键后鼠标只移动一下的情况,请把罗技软件退出并用管理员方式启动。
        ------------------开始压枪--------------
        if (event == "MOUSE_BUTTON_PRESSED" and arg == 6) then
        Hacker = true
        OutputLogMessage("Hacker_on ")
        end
        ----------------LVOA-C-------------------
        if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod2 and not IsModifierPressed("lalt")) then
        Mod2 = true
        OutputLogMessage("Mod2_on ")
        -------全自动---------
        zyx = 28----首发强度
        xzy = 8----持续强度
        yxz = 10----压枪间隔
        end
        -----------------SUB GUN------------------------
        if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod3 and not IsModifierPressed("lalt")) then
        Mod3 = true
        OutputLogMessage("Mod3_on")
        -------全自动---------
        zyx = 2----首发强度
        xzy = 1----持续强度
        yxz = 30----压枪间隔
        end
        ---------------AK----------------------
        if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod4 and not IsModifierPressed("lalt")) then
        Mod4 = true
        OutputLogMessage("Mod4_on")
        -------全自动---------
        zyx = 75----首发强度
        xzy = 20----持续强度
        yxz = 10----压枪间隔
        end
        ----------------4X-----------------
        if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod5 and not IsModifierPressed("lalt")) then
        Mod5 = true
        OutputLogMessage("Mod5 on")
        -------全自动---------
        zyx = 120----首发强度
        xzy = 20----持续强度
        yxz = 10----压枪间隔
        end
        ------------------Single--------------------
        if (event == "MOUSE_BUTTON_PRESSED" and arg == Mod7 and not IsModifierPressed("lalt")) then
        Mod7 = true
        OutputLogMessage("Mod7_on")
        -------全自动---------
        zyx = 50----首发强度
        xzy = 10----持续强度
        yxz = 10----压枪间隔
        end
        -----------------Mod8-


        IP属地:安徽来自Android客户端5楼2023-05-12 23:44
        回复
          可以


          IP属地:河北来自Android客户端6楼2023-05-14 11:11
          回复