-
Notifications
You must be signed in to change notification settings - Fork 0
/
淘金币.js
36 lines (31 loc) · 900 Bytes
/
淘金币.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
auto.waitFor();
var height = device.height;
var width = device.width;
autoplay();
function autoplay() {
sleep(2000);
if (text("打卡").exists()) {
text("打卡").findOne().click();
sleep(2000);
toast("打卡成功");
}
while (textEndsWith("去逛逛").exists()) {
//要支持的动作
toast("存在去逛逛");
textEndsWith("去逛逛").findOne().click();
sleep(5000);
swipe(width / 2, height - 300, width / 2, 100, 1000);
sleep(2500);
swipe(width / 2, height - 300, width / 2, 100, 1000);
sleep(5000);
swipe(width / 2, height - 300, width / 2, 100, 1000);
sleep(5000);
swipe(width / 2, height - 300, width / 2, 100, 1000);
sleep(5000);
back();
sleep(2000);
}
toast("完成[去逛逛]检测");
sleep(2000);
toast("结束");
}