Skip to content

Instantly share code, notes, and snippets.

@nondanee
Created April 29, 2019 15:51
Show Gist options
  • Save nondanee/2f3c675f3ad5602b49601ff5ef383c2c to your computer and use it in GitHub Desktop.
Save nondanee/2f3c675f3ad5602b49601ff5ef383c2c to your computer and use it in GitHub Desktop.
Auto.js script for Jike south&north fighting
"auto";
setScreenMetrics(1080, 1920);
var point = [
[157, 1647],
[378, 1561],
[689, 1489],
[957, 1674]
]
var _point = [
[193, 1651],
[361, 1426],
[560, 1400],
[799, 1413],
[922, 1597]
]
var loop = setInterval(function(){
gestures(
[0, 5, point[0], point[0]],
[0, 5, point[1], point[1]],
[0, 5, point[2], point[2]],
[0, 5, point[3], point[3]]//,
//[0, 5, point[4], point[4]]
)
}, 150)
events.observeKey()
events.onKeyDown("volume_down", function(event){
clearInterval(loop)
toast("不吃了!")
exit()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment