autojs之火山极速版

autojs之火山极速版

var tools = {}
//向上滑动
tools.swipeUp = function () {
var w = device.width / 2;
var h = device.height / 2;
var x1 = w + random(1, 5);
var y1 = h + random(10, 50);
var x2 = w + random(1, 5);
var y2 = h - random(10, 50);
var x1 = random(x1, y1, x2, y2);
}

//向下滑
tools.swipeDown = function () {
var w = device.width / 2;
var h = device.height / 2;
var x1 = w + random(1, 5);
var y1 = h - random(10, 50);
var x2 = w + random(1, 5);
var y2 = h + random(10, 50);
var x1 = random(x1, y1, x2, y2);
}

tools.clickObj = function (obj) {
var t = obj.bounds();
click(t.centerX(), t.centerY());
}

tools.findObj = function (obj) {
while (true) {
var target &

你可能感兴趣的:(安全)