Skip to content

Commit

Permalink
退出游戏偶尔未触发
Browse files Browse the repository at this point in the history
Signed-off-by: 衣沾不足惜 <[email protected]>
  • Loading branch information
frei-x committed Apr 29, 2020
1 parent 01ba293 commit ebc381d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ setInterval(function () {
robot.moveMouse(1920 / 2 - 75, 1080 - 70);
robot.mouseToggle('down', 'left');
robot.mouseToggle('up', 'left')
}, 2000)
}, 2500)
// 有时候出现吉格斯报错
setTimeout(() => {
robot.moveMouse(1920 / 2, 1080 - 380);
Expand All @@ -47,9 +47,8 @@ setInterval(function () {
setTimeout(() => {
robot.moveMouse(1920 / 2 - 95, 1080 - 90 - 470);// 退出按钮宽度 x: 1920 / 2 - 220 ~ 1920 / 2 - 50 , 减105刚好避免开始对局切换皮肤 ,同时可以点击到退出
robot.mouseToggle('down', 'left');
setTimeout(() => { robot.mouseToggle('up', 'left'), 0 })

}, 5000)
setTimeout(() => { robot.mouseToggle('up', 'left'), 10 })
}, 4000)
// setTimeout(() => { robot.keyToggle("d", 'up') }, 40)
// robot.keyToggle("f", 'down')
// setTimeout(() => { robot.keyToggle("f", 'up') }, 40)
Expand Down

0 comments on commit ebc381d

Please sign in to comment.