StarRailCopilot/alas.bat

63 lines
917 B
Batchfile
Raw Normal View History

@echo off
2020-06-18 16:13:00 +00:00
call adb kill-server > nul 2>&1
REM Change to your emulator port
2020-06-18 16:13:00 +00:00
adb connect 127.0.0.1:5565
echo initializing uiautomator2
python -m uiautomator2 init
2020-06-18 16:13:00 +00:00
:: timout
PowerShell -Command "Start-Sleep -s 3" > nul 2>&1
goto alas
:alas
cls
echo.
echo :: Alas run
echo.
echo Choose your server
echo.
echo 1. EN
echo 2. CN
echo 3. JP
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
goto alas
2020-06-18 16:13:00 +00:00
:cn
%~dp0python/python.exe alas_cn.pyw
2020-06-18 16:13:00 +00:00
goto alas
2020-06-18 16:13:00 +00:00
:jp
%~dp0python/python.exe alas_jp.pyw
2020-06-18 16:13:00 +00:00
goto alas