-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtanwxw.lua
More file actions
236 lines (191 loc) · 4.9 KB
/
tanwxw.lua
File metadata and controls
236 lines (191 loc) · 4.9 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
--左上角按钮
function btnlefttop()
click(37,82);
end
--右上角按钮
function btnrighttop()
click(599,85);
end
--延迟随机
function msleeprand(t)
mSleep(t+math.random(100,999));
end
--点击按钮
function click(x, y)
touchDown(0, x, y);
mSleep(math.random(20,80));
touchUp(0);
end
--探探点赞
function ttdianzan()
appRun("com.yaymedialabs.putong");--打开探探
msleeprand(5000);
click(37,82);--左上角
msleeprand(1500);
click(226,388);--探探
msleeprand(1200);
for sim = 100, 50, -1 do
x, y = findColorInRegionFuzzy(0xec553f, sim, 400, 1035, 436, 1067);
if x ~= -1 and y ~= -1 then --如果在指定区域找到某点符合条件
click(418,1050);--红色心形
mSleep(500);
--notifyMessage("sdfdsf");
break; --并跳出循环
end
--mSleep(500);
end
end
--向左拨动
function clickmoveleft()
x=560;
y=76;
mSleep(800);
cs=math.random(2, 4);--拨动次数
-- notifyMessage(cs);
if cs>1 then
for i=1,cs do
touchDown(0,x,y);
mSleep(800);
touchMove(0,x-254,y);
mSleep(100);
touchUp(0);
end
else
touchMove(0,x-254,y);
mSleep(100);
touchUp(0);
end
mSleep(5000);
end
function jiuxiu()
msleeprand(1000);
appRun("com.9xiu.9xiumm");--打开九秀
msleeprand(2000);
local msgcodeqx=textlocal(18,1112,104,1133);
if(string.match(msgcodeqx,'直')=='直') then
click(61,1082);--直播
end
msleeprand(2000);
local msgcodeqx=textlocal(523,365,584,410);
if(string.match(msgcodeqx,'冀童')=='冀童') then
click(559,388);--更多
end
msleeprand(2000);
click(163,244);--直播间1
msleeprand(4000);
click(436,80);
youkeqh();--切换游客打招呼
msleeprand(2000);
click(491,244);--直播间2
msleeprand(4000);
click(436,80);
youkeqh();--切换游客打招呼
msleeprand(2000);
click(164,575);--直播间3
msleeprand(4000);
click(436,80);
youkeqh();--切换游客打招呼
msleeprand(2000);
click(494,575);--直播间4
msleeprand(4000);
click(436,80);
youkeqh();--切换游客打招呼
msleeprand(2000);
click(170,857);--直播间5
msleeprand(4000);
click(436,80);
youkeqh();--切换游客打招呼
msleeprand(2000);
click(484,857);--直播间6
msleeprand(4000);
click(436,80);
youkeqh();--切换游客打招呼
msleeprand(2000);
click(157,1103);--直播间7
msleeprand(4000);
click(436,80);
youkeqh();--切换游客打招呼
msleeprand(2000);
click(488,1103);--直播间8
msleeprand(4000);
click(436,80);
youkeqh();--切换游客打招呼
end
--游客切换
function youkeqh();
msleeprand(2000);
clickmoveleft();--向上拨动
msleeprand(2000);
click(56,416);--第一个游客
dazhaohu();
msleeprand(2000);
click(436,80);
msleeprand(2000);
click(56,535);--第二个游客
dazhaohu();
msleeprand(2000);
click(436,80);
msleeprand(2000);
click(56,650);--第三个游客
dazhaohu();
msleeprand(2000);
click(436,80);
msleeprand(2000);
click(56,770);--第四个游客
dazhaohu();
msleeprand(2000);
click(436,80);
msleeprand(2000);
click(56,888);--第五个游客
dazhaohu();
msleeprand(2000);
click(436,80);
msleeprand(2000);
click(56,1008);--第六个游客
dazhaohu();
msleeprand(2000);
click(610,77);--关闭
msleeprand(2500);
end
--打招呼
function dazhaohu()
msleeprand(1500);
click(320,713);--私聊
msleeprand(1000);
click(338,1110);--点击输入框
msleeprand(1000);
str="\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b";
msleeprand(1500);
a = {"嗨,你好",
"hello",
"hello,你会唱歌吗",
}
a_num=math.random(1,#a);
inputText(str..a[a_num]);
msleeprand(2000);
click(596,600); --点击发送
msleeprand(2000);
click(610,77);--关闭
end
--向上拨动不要管理员
function clickmoveleft()
x=230;
y=1068;
mSleep(800);
cs=math.random(2, 3);--拨动次数
-- notifyMessage(cs);
if cs>1 then
for i=1,cs do
touchDown(0,x,y);
mSleep(500);
touchMove(0,x,y-589);
mSleep(100);
touchUp(0);
end
else
touchMove(0,x,y-589);
mSleep(100);
touchUp(0);
end
mSleep(5000);
end