Android 台灣中文網
標題:
[蝦蝦果園] 自動澆水andorid shell script 執行檔 (須root)
[打印本頁]
作者:
70tw
時間:
2020-9-24 15:13
標題:
[蝦蝦果園] 自動澆水andorid shell script 執行檔 (須root)
利用 Android adb 指令可以模擬手指操控手機的動作。於是寫了一個 shell script,搭配 [Tasker] app,設定在指定的時間,自動開啟蝦皮購物,進入蝦蝦果園,並自動澆水。
詳細請參考連結:
https://70tw.blogspot.com/2020/09/android-shell-script-root.html
程式碼如下: (手機解析度為1920 x 1080)
#!/system/bin/sh
#開啟螢幕
#input keyevent KEYCODE_MENU;input keyevent KEYCODE_HOME;
#or
#input keyevent KEYCODE_POWER
input keyevent KEYCODE_HOME
#開啟蝦皮
am start -n com.shopee.tw/com.shopee.app.ui.home.HomeActivity_;
sleep 7;
input tap 935 385;
input keyevent 4;input keyevent 4;
am start -n com.shopee.tw/com.shopee.app.ui.home.HomeActivity_;
sleep 3;
#每日簽到
input tap 970 1840;
sleep 2;
#input swipe 540 1600 540 400;
#sleep 2;
input tap 900 1070;
sleep 2;
input tap 540 490;
sleep 1;
input tap 540 490;
sleep 1;
#蝦蝦果園
input tap 125 1530;
sleep 2;
#input swipe 540 900 540 540;
#input swipe 540 1250 540 540;
sleep 1;
#exit;
input tap 540 1600;
sleep 5;
input tap 935 1735;
sleep 2;
input keyevent 4;input keyevent 4;input keyevent 4;input keyevent 4;input keyevent 4;
sleep 2;
exit;
複製代碼
歡迎光臨 Android 台灣中文網 (https://apk.tw/)
Powered by Discuz! X3.1