用的也是python2.7的,requirement.txt也执行成功了,然后运行python wechat_jump_auto.py
执行结果是这样的, 貌似是成功了,但是小程序没有任何反应。
[100%] /sdcard/1.png
(1514635834, 338, 1104, 788, 846)
adb shell input swipe 320 410 320 410 722
[100%] /sdcard/1.png
(1514635842, 338, 1104, 788, 846)
adb shell input swipe 320 410 320 410 722
[100%] /sdcard/1.png
(1514635849, 338, 1104, 788, 846)
adb shell input swipe 320 410 320 410 722
[100%] /sdcard/1.png
同,我也是,我是小米6
同,我也是,我是小米Note2
同,小米6
同,我也是,魅族E2
我知道了,开发者选项里面不止要开启USB调试,还要给adb控制屏幕输入的权限
一个叫USB调试(安全设置)的选项
我的terminal打印了这些,但是小程序没有反应...
python wechat_jump_auto.py
/sdcard/1.png: 1 file pulled. 12.3 MB/s (64518 bytes in 0.005s)
('scan_start_y: ', 350)
(1514638961, 338, 1104, 1065, 686)
adb shell input swipe 540 1514.5 540 1514.5 1167
/sdcard/1.png: 1 file pulled. 11.4 MB/s (64518 bytes in 0.005s)
('scan_start_y: ', 350)
(1514638964, 338, 1104, 1065, 686)
adb shell input swipe 540 1514.5 540 1514.5 1167
/sdcard/1.png: 1 file pulled. 11.8 MB/s (64518 bytes in 0.005s)
('scan_start_y: ', 350)
(1514638967, 338, 1104, 1065, 686)
adb shell input swipe 540 1514.5 540 1514.5 1167
/sdcard/1.png: 1 file pulled. 13.6 MB/s (64518 bytes in 0.005s)
('scan_start_y: ', 350)
(1514638971, 338, 1104, 1065, 686)
adb shell input swipe 540 1514.5 540 1514.5 1167
/sdcard/1.png: 1 file pulled. 12.9 MB/s (64518 bytes in 0.005s)
('scan_start_y: ', 350)
(1514638974, 338, 1104, 1065, 686)
adb shell input swipe 540 1514.5 540 1514.5 1167
/sdcard/1.png: 1 file pulled. 8.1 MB/s (64518 bytes in 0.008s)
果然是打开 USB调试(安全设置)就可以了
用管理员打开软件
Most helpful comment
我知道了,开发者选项里面不止要开启USB调试,还要给adb控制屏幕输入的权限
一个叫USB调试(安全设置)的选项