Skip to content

Commit

Permalink
更新了很多东西
Browse files Browse the repository at this point in the history
  • Loading branch information
start201711 committed Apr 3, 2018
1 parent 5e7895a commit 45c96a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions 201804/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 使用说明
> * 蚂蚁森林自动收能量脚本
> * 蚂蚁庄园自动投食、驱赶脚本
##自动收能量脚本
3 changes: 2 additions & 1 deletion 201804/投食.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ function prepare() {
function doSth() {

for (let i = 0; i < 2; i++) {
//这里需要设置投食按钮的位置
script.press(595, 1150, 20);
sleep(30);
}
log("投食完毕");
sleep(3000);
shell("pm disable com.eg.android.AlipayGphone", true);
shell("am force-stop " + pkg, true);
toastLog("本轮完毕!");
sleep(3000);
}
Expand Down
4 changes: 2 additions & 2 deletions 201804/驱赶.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ function doSth() {
toast("请求截图失败,脚本退出");
exit();
}

//这里需要设置偷吃东西的两只鸡的位置
for (let i = 0; i < 10; i++) {
script.press(218, 851, 100);
sleep(500);
script.press(518, 851, 100);
sleep(500);
}
sleep(3000);
shell("pm disable com.eg.android.AlipayGphone", true);
shell("am force-stop " + pkg, true);
toastLog("本轮完毕!");
sleep(3000);
exit();
Expand Down

0 comments on commit 45c96a4

Please sign in to comment.