forked from czl000/autojs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
上海移动和你-签到.js
43 lines (34 loc) · 979 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
37
38
39
40
41
42
43
auto.waitFor();
var Maid = require("./common/Maid.js");
var maid = new Maid("com.sh.cm.shydhn");
var Unlock = require("./common/Unlock.js");
var unlock = new Unlock();
maid.before();
unlock.unlock();
maid.sleep(2);
//该APP在wifi下连接速度很慢, 转到移动数据连接
shell("svc wifi disable", true);
shell("svc data enable", true);
maid.sleep(2);
maid.kill();
maid.sleep(2);
maid.launchActivity("com.richeninfo.cm.shydhn.ui.v4.ui.activity.HomeActivity");
maid.sleep(8);
if (id("iv_close1").exists()) {
maid.clickIdCenter("iv_close1"); //弹出的广告
maid.sleep(2);
}
maid.click(979, 2077); //我的
maid.sleep(5);
//进去签到页按钮
if (id("listview_header_no_hider_ll_sign_in").exists()) {
maid.clickIdCenter("listview_header_no_hider_ll_sign_in");
maid.sleep(4);
}
maid.clickTextCenter("签到"); //签到按钮
maid.sleep(2);
maid.kill();
shell("svc wifi enable", true);
shell("svc data disable", true);
maid.sleep(2);
maid.after();