微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

罗技 G502 英雄脚本

如何解决罗技 G502 英雄脚本

我正在尝试通过 G Hub(罗技应用程序)鼠标脚本在 pubg Mobile Emulator 游戏中存档 No Recoil...当我按下开火按钮时,它应该继续开火并保持我的目标。我写了一些代码来在射击时瞄准,它在除了 pubg Mobile Emulator 之外的任何地方都可以使用。在 pubg Mobile Emulator 中,它在单次射击中有效,但在自动射击中无效。有人能帮我解决这个问题吗?

function OnEvent(event,arg)
    OutputLogMessage("event = %s,arg = %d\n",event,arg)
    if (event == "PROFILE_ACTIVATED") then
        EnablePrimaryMouseButtonEvents(true)
    elseif event == "PROFILE_DEACTIVATED" then
        ReleaseMouseButton(2) -- to prevent it from being stuck on
    end
    if (event == "MOUSE_BUTTON_pressed" and arg == 4) then
        recoil = not recoil
        spot = not spot
    end
    if (event == "MOUSE_BUTTON_pressed" and arg == 1 and recoil) then
        if recoil then
            repeat
                --Sleep(10)
                Sleep(10)
                MoveMouseRelative(0,5)
            until not IsMouseButtonpressed(1)
        end
    end
end

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。