Bat脚本
1.去掉文件名称中的左右括号和空格的bat脚本:如果还需要去掉其他特殊字符,可以复制set语句,!name:替换上要删除的字符即可
@Echo Off&SetLocal ENABLEDELAYEDEXPANSION
FOR %%a in (*) do (
set "name=%%a"
set "name=!name:(=!"
set "name=!name:)=!"
set "name=!name: =!"
ren "%%a" "!name!"
)
exit
2.调用手机端浏览器连续访问一个网址:中间的tap是手机端的(x,y)像素点位置,这个需要根据实际手机屏幕进行调整
@echo off
:loop
adb shell am start -n com.android.browser/.BrowserActivity
choice /t 5 /d y /n >nul
adb shell input tap 298 137
choice /t 1 /d y /n >nul
adb shell input text nanxuanlihe.cn
choice /t 1 /d y /n >nul
adb shell input tap 1006 142
choice /t 5 /d y /n >nul
adb shell am force-stop com.android.browser
choice /t 1 /d y /n >nul
goto loop