-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfriend_pool.js
More file actions
46 lines (34 loc) · 840 Bytes
/
friend_pool.js
File metadata and controls
46 lines (34 loc) · 840 Bytes
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
auto()
if (!requestScreenCapture(true)) {
toast('请求截图失败')
exit()
}
sleep(300)
var utils = require('./utils')
var findButton = utils.findButton
var readImage = utils.readImage
var click1 = utils.click
var sleep1 = utils.sleep
// setScreenMetrics(1080, 2340)
const Blank = [2016, 821]
const Confirm = [1564, 855]
const Continue = [1497, 1000]
const Continue10Image = readImage('./assets/continue10.jpg')
var i = 0
events.on('exit', function() {
Continue10Image.recycle()
toast('共抽 ' + i + ' 次')
})
toast('开抽')
while (true) {
while (!findButton(Continue10Image, { maxTimes: 1 })) {
click1(Blank[0], Blank[1], true)
}
toast('抽完了一次!')
click1(Continue[0], Continue[1], true)
sleep1(300)
click1(Confirm[0], Confirm[1], true)
// 在这里才开始
i++
sleep(1500)
}