mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 20:43:33 +08:00
Update: Easy Install updated to V2
This commit is contained in:
58
alas.bat
58
alas.bat
@@ -1,14 +1,62 @@
|
||||
@echo off
|
||||
|
||||
echo Start batch on %CD%
|
||||
call .\venvalas\scripts\activate.bat
|
||||
call adb kill-server > nul 2>&1
|
||||
REM Change to your emulator port
|
||||
::adb connect 127.0.0.1:5565
|
||||
adb connect 127.0.0.1:5565
|
||||
|
||||
echo initializing uiautomator2
|
||||
python -m uiautomator2 init
|
||||
Py alas_en.pyw
|
||||
|
||||
PAUSE
|
||||
:: 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
|
||||
|
||||
:cn
|
||||
%~dp0python/python.exe alas_cn.pyw
|
||||
|
||||
goto alas
|
||||
|
||||
:jp
|
||||
%~dp0python/python.exe alas_jp.pyw
|
||||
|
||||
goto alas
|
||||
|
||||
Reference in New Issue
Block a user