1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 10:58:21 +08:00
Files
AzurLaneAutoScript/alas.bat

63 lines
933 B
Batchfile
Raw Normal View History

@echo off
2020-06-18 13:13:00 -03:00
call adb kill-server > nul 2>&1
REM Change to your emulator port
adb connect 127.0.0.1:5565
2020-06-18 13:13:00 -03:00
echo initializing uiautomator2
%~dp0python/python.exe -m uiautomator2 init
2020-06-18 13:13:00 -03:00
:: timout
PowerShell -Command "Start-Sleep -s 3" > nul 2>&1
2020-06-18 13:13:00 -03:00
goto alas
:alas
cls
echo.
echo :: Alas run
echo.
echo Choose your server
echo.
echo 1. EN
echo 2. CN
echo 3. JP
2020-06-18 13:13:00 -03:00
echo.
echo :: Type a 'number' and press ENTER
echo :: Type 'exit' to quit
echo.
set /P menu=
if %menu%==1 GOTO en
if %menu%==2 GOTO cn
if %menu%==3 GOTO jp
if %menu%==exit GOTO EOF
else (
cls
echo.
echo :: Incorrect Input Entered
echo.
echo Please type a 'number' or 'exit'
echo Press any key to retry to the menu...
echo.
pause > NUL
goto alas
)
:en
%~dp0python/python.exe alas_en.pyw
2020-06-18 13:13:00 -03:00
goto alas
2020-06-18 13:13:00 -03:00
:cn
%~dp0python/python.exe alas_cn.pyw
2020-06-18 13:13:00 -03:00
goto alas
2020-06-18 13:13:00 -03:00
:jp
%~dp0python/python.exe alas_jp.pyw
2020-06-18 13:13:00 -03:00
goto alas