Skip to content

Commit

Permalink
Merge pull request #40 from kiccer/test
Browse files Browse the repository at this point in the history
优化 一键拾取 效果
  • Loading branch information
kiccer authored Jul 29, 2019
2 parents 3578218 + f70b68b commit 784dd5c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Soldier76.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ userInfo = {
},

-- 自动腰射,不使用自动腰射留空,使用则设置为键盘上按键,默认为 tilde -> ~ 键
autoPressAimKey = "tilde",
autoPressAimKey = "",

-- 是否自动连发 (单发模式变全自动 1 - 开启, 0 - 关闭)
autoContinuousFiring = 1, -- 默认为 1
Expand Down Expand Up @@ -754,6 +754,7 @@ function pubg.fastPickup ()
PressAndReleaseKey("ralt")
PressAndReleaseKey("tab")
Sleep(10 + pubg.sleep)
PressAndReleaseMouseButton(1)
local lastItemCp = {
300 / 2560 * 65535,
1210 / 1440 * 65535
Expand All @@ -764,8 +765,8 @@ function pubg.fastPickup ()
PressMouseButton(1)
MoveMouseTo(32767, 32767)
ReleaseMouseButton(1)
-- Sleep(pubg.sleep)
end
MoveMouseTo(lastItemCp[1], lastItemCp[2])
PressAndReleaseKey("tab")
end

Expand Down Expand Up @@ -983,7 +984,12 @@ function OnEvent (event, arg, family)

-- Script deactivated event
if event == "PROFILE_DEACTIVATED" then
pubg.PressOrRelaseAimKey(false)
ReleaseKey("lshift")
ReleaseKey("lctrl")
ReleaseKey("lalt")
ReleaseKey("rshift")
ReleaseKey("rctrl")
ReleaseKey("ralt")
end

end
Expand Down

0 comments on commit 784dd5c

Please sign in to comment.