-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdamai.txt
47 lines (40 loc) · 916 Bytes
/
damai.txt
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
37
38
39
40
41
42
43
44
45
46
47
auto();
var intervel = 1000;
// var appName = "大麦";
// launchApp(appName);
sleep(3000)
openConsole();
// 立即预定
while (true) {
var bt1 = text("立即预定").findOnce();
if (bt1) {
bt1.parent().click();
break;
}
print("等待%d", intervel);
sleep(intervel);
}
print("点击预订");
// 选择票档
while (true) {
var bt2 = text("看台980元").findOnce();
if (bt2) {
bt2.parent().click();
break;
}
print("等待%d", intervel);
sleep(intervel);
}
print("选择票档");
// 加票
click(972, 2121);
// 确定
while (true) {
var bt3 = text("确定").findOnce();
if (bt3) {
bt3.parent().click();
break;
}
print("等待%d", intervel);
sleep(intervel);
}