-
罗技G502鼠标宏设置大法,一键精准压枪,告别手残!(2)
- 作者:王文治 分类:win8 发布时间:2024-01-16 21:30:00
pubg.onWeaponUmp9 = function () local weaponRocilData = {5. 5. 5. 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5....
pubg.onWeaponUmp9 = function ()
local weaponRocilData = {5. 5. 5. 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}
local weaponDuration = 20
local currentRecoilPos = 1
repeat
MoveMouseRelative(pubg.random(-1,2), weaponRocilData[currentRecoilPos])
currentRecoilPos = currentRecoilPos + 1
Sleep(weaponDuration)
OutputLogMessage(tostring(currentRecoilPos) .. " ")
if currentRecoilPos == #weaponRocilData then
currentRecoilPos = 1
end
until not IsMouseButtonPressed(1)
end
-------------------------------------------------------------------------------
-- 选择AKM枪
-------------------------------------------------------------------------------
pubg.onWeaponAkm = function ()
local weaponRocilData = {5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}
local weaponDuration = 20
local currentRecoilPos = 1
repeat
MoveMouseRelative(0, weaponRocilData[currentRecoilPos])
currentRecoilPos = currentRecoilPos + 1
Sleep(weaponDuration)
OutputLogMessage(tostring(currentRecoilPos) .. " ")
if currentRecoilPos == #weaponRocilData then
currentRecoilPos = 1
end
until not IsMouseButtonPressed(1)
end
-------------------------------------------------------------------------------
-- 选择M16A4枪
-------------------------------------------------------------------------------
pubg.onWeaponM16a4 = function ()
local weaponRocilData = {5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}
local weaponDuration = 20
local currentRecoilPos = 1
repeat
MoveMouseRelative(pubg.random(-1,2), weaponRocilData[currentRecoilPos])
currentRecoilPos = currentRecoilPos + 1
Sleep(weaponDuration)
OutputLogMessage(tostring(currentRecoilPos) .. " ")
if currentRecoilPos == #weaponRocilData then
currentRecoilPos = 1
elseif currentRecoilPos % 5 == 0 then
ReleaseMouseButton(1)
Sleep(10)
PressMouseButton(1)
Sleep(100)
end
until not IsMouseButtonPressed(1)
OutputLogMessage("IsMouseButtonPressed == false\n")
end
-------------------------------------------------------------------------------
-- 选择M416枪
-------------------------------------------------------------------------------
pubg.onWeaponM416 = function ()
ClearLog()
local weaponRocilData = {5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}
local weaponDuration = 20
local currentRecoilPos = 1
repeat
MoveMouseRelative(pubg.random(-1,2), weaponRocilData[currentRecoilPos])
currentRecoilPos = currentRecoilPos + 1
Sleep(weaponDuration)
OutputLogMessage(tostring(currentRecoilPos) .. " ")
if currentRecoilPos == #weaponRocilData then
currentRecoilPos = 1
elseif currentRecoilPos % 5 == 0 then
ReleaseMouseButton(1)
Sleep(20)
PressMouseButton(1)
end
until not IsMouseButtonPressed(1)
end
-------------------------------------------------------------------------------
-- pubg逻辑处理
-------------------------------------------------------------------------------
pubg.onEvent = function (event, arg)
OutputLogMessage("event = %s, arg = %d\n", event, arg)
if event == "PROFILE_ACTIVATED" then
EnablePrimaryMouseButtonEvents(true)
elseif event == "PROFILE_DEACTIVATED" then
EnablePrimaryMouseButtonEvents(false)
pubg.currentWeapon = "NIL"
ReleaseKey(0x1d)
ReleaseMouseButton(1)
ReleaseMouseButton(2)
return
end
-- G键按下逻辑
if event == "MOUSE_BUTTON_PRESSED" and arg == 6 then
pubg.isGKeyPressed = true
pubg.isOKeyPressed = false
elseif event == "MOUSE_BUTTON_RELEASED" and arg == 6 then
pubg.isGKeyPressed = false
end
-- 在G键按下的时候,其他键是否被按下
if event == "MOUSE_BUTTON_PRESSED" and arg ~= 6 and pubg.isGKeyPressed then
pubg.isOKeyPressed = true
end
-- 单独G键被按下
if event == "MOUSE_BUTTON_RELEASED" and arg == 6 and pubg.isOKeyPressed == false then
pubg.onGKeyPressed()
-- 一键拾取物品
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyPickupWeapon and pubg.isGKeyPressed == false then
pubg.onPickupWeapon()
-- 一键丢弃物品
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyDrop and pubg.isGKeyPressed == true then
pubg.onDrop()
-- 一键奔跑
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyAlwayRun and pubg.isGKeyPressed == false then
猜您喜欢
- 鼠标有光却不动?试试这个简单解决方..2024-04-24
- 联想蓝牙鼠标连不上电脑?轻松掌握这..2024-04-18
- 电脑白屏有鼠标移动,如何解决仅剩鼠..2024-04-10
- 鼠标右键大清理,轻松告别繁琐菜单,..2024-04-05
- 鼠标不能拖动文件?电脑拖拽失效怎么..2024-04-05
- 罗技驱动解压难题,无法安装资源?一..2024-04-03
相关推荐
- Win8.1企业版系统创建图片密码保护个人..2022-11-04
- win8电脑cpu占用100%怎么解决 win8cpu占用..2022-02-07
- 电脑小技巧:如何轻松卸载Windows7上的..2024-01-06
- win8光驱盘符 win8改装光驱盘符..2022-02-01
- 详解win8开机蓝屏错误修复0x000008e代码..2017-04-25
- win7网络环境可能存在劫持是什么意思..2023-11-13