-
Notifications
You must be signed in to change notification settings - Fork 25
/
订阅.mq
106 lines (104 loc) · 3.03 KB
/
订阅.mq
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Function 订阅操作
Dim dy = 0
Do
FindPic 0,0,0,0,"Attachment:订阅按钮.png","000000",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
Tap intX, intY
dy = dy + 1
Delay 1000
TracePrint dy
If dy = 2 Then
TracePrint "订阅结束"
Exit Do
End If
Else
Swipe 238, 616, 238, 437, 3000
Delay 1000
End If
Loop
End Function
Function 订阅
TracePrint "订阅"
Dim 订阅栏目
订阅栏目 = ReadUIConfig("下拉框1", 0)
Delay 1000
查看积分
For 3
Swipe 364, 1161, 364, 735
Next
Delay 1500
FindPic 0,0,0,0,"Attachment:订阅.png","000000",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
Tap intX+300, intY
Delay 3000
End If
Delay 1500
If 订阅栏目 = 0 Then
TracePrint "执行的是",订阅栏目
订阅操作
ElseIf 订阅栏目 = 1 Then
TracePrint "执行的是",订阅栏目
FindPic 0,0,0,0,"Attachment:主要媒体.png","000000",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
Tap intX,intY
TracePrint intX
TracePrint intY
Delay 1500
End If
订阅操作
ElseIf 订阅栏目 = 2 Then
TracePrint "执行的是",订阅栏目
FindPic 0,0,0,0,"Attachment:行业媒体.png","000000",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
Tap intX,intY
TracePrint intX
TracePrint intY
Delay 1500
End If
订阅操作
ElseIf 订阅栏目 = 3 Then
TracePrint "执行的是",订阅栏目
FindPic 0,0,0,0,"Attachment:机关.png","000000",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
Tap intX,intY
TracePrint intX
TracePrint intY
Delay 1500
End If
订阅操作
ElseIf 订阅栏目 = 4 Then
TracePrint "执行的是",订阅栏目
FindPic 0,0,0,0,"Attachment:高校.png","000000",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
Tap intX,intY
TracePrint intX
TracePrint intY
Delay 1500
End If
订阅操作
ElseIf 订阅栏目 = 5 Then
TracePrint "执行的是",订阅栏目
FindPic 0,0,0,0,"Attachment:地方媒体.png","000000",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
Tap intX,intY
TracePrint intX
TracePrint intY
Delay 1500
End If
订阅操作
ElseIf 订阅栏目 = 6 Then
TracePrint "执行的是",订阅栏目
FindPic 0,0,0,0,"Attachment:社会机构.png","000000",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
Tap intX,intY
TracePrint intX
TracePrint intY
Delay 1500
End If
订阅操作
End If
Tap 40, 95
Delay 1500
Tap 40, 95
Delay 1000
End Function