You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
::ps:This is the English version, and I also have a Chinese version (because I am Chinese, and both the translation and title are provided by "Baidu Translate")
cls
goto ready
: ready
cls
Title Screen Projection Control
goto menu
: menu
echo off
cls
echo ===================
Echo screen projection control
echo ===================
echo 1、 Directly enter the IP connection (provided that 5555 has been set up and unlimited debugging is always enabled)
echo 2、 Pairing code (applicable to novices)
echo 3、 Original version
set menu=
set /p menu=Please enter which one to start:
if "%menu%" == "1" goto ip
if "%menu%" == "2" goto pdm
if "%menu%" == "3" goto yuanshi
goto menu
: start
Choice /m "Do you want to continue opening?"
if %errorlevel% == 1 goto ip
if %errorlevel% == 2 exit
: ip
cls
Echo View IP Method: Settings - WiFi (wireless network) - Click on WiFi network (exclamation mark next to it) - IP address
Echo mobile network (data) doesn't need to come in anymore
Set/p ip=IP address:
Echo is connecting, please wait (remember to agree on your phone)
for /f "delims=" %%i in ("adb device") do set resc=%%i
echo %resc% | findstr device >nul && (
adb disconnect
adb connect %ip%
scrcpy.exe --pause-on-exit=if-error %*
goto start
) || (
Echo screen mirroring failed to activate, reason:% resc%
)
: pdm
cls
Echo View IP Method: Settings - WiFi (wireless network) - Click on WiFi network (exclamation mark next to it) - IP address
Echo mobile network (data) doesn't need to come in anymore
Set/p ip=IP address:
Set/p port=port number:
Set/p pdm=pairing code:
Echo is connecting, please wait (remember to agree on your phone)
for /f "delims=" %%i in ("adb pair %ip%:%port% %pdm%") do set resc=%%i
echo %resc% | findstr device >nul && (
scrcpy.exe --pause-on-exit=if-error %*
)
::ps:This is the English version, and I also have a Chinese version (because I am Chinese, and both the translation and title are provided by "Baidu Translate")
cls
goto ready
: ready
cls
Title Screen Projection Control
goto menu
: menu
echo off
cls
echo ===================
Echo screen projection control
echo ===================
echo 1、 Directly enter the IP connection (provided that 5555 has been set up and unlimited debugging is always enabled)
echo 2、 Pairing code (applicable to novices)
echo 3、 Original version
set menu=
set /p menu=Please enter which one to start:
if "%menu%" == "1" goto ip
if "%menu%" == "2" goto pdm
if "%menu%" == "3" goto yuanshi
goto menu
: start
Choice /m "Do you want to continue opening?"
if %errorlevel% == 1 goto ip
if %errorlevel% == 2 exit
: ip
cls
Echo View IP Method: Settings - WiFi (wireless network) - Click on WiFi network (exclamation mark next to it) - IP address
Echo mobile network (data) doesn't need to come in anymore
Set/p ip=IP address:
Echo is connecting, please wait (remember to agree on your phone)
for /f "delims=" %%i in ("adb device") do set resc=%%i
echo %resc% | findstr device >nul && (
adb disconnect
adb connect %ip%
scrcpy.exe --pause-on-exit=if-error %*
goto start
) || (
Echo screen mirroring failed to activate, reason:% resc%
)
: pdm
cls
Echo View IP Method: Settings - WiFi (wireless network) - Click on WiFi network (exclamation mark next to it) - IP address
Echo mobile network (data) doesn't need to come in anymore
Set/p ip=IP address:
Set/p port=port number:
Set/p pdm=pairing code:
Echo is connecting, please wait (remember to agree on your phone)
for /f "delims=" %%i in ("adb pair %ip%:%port% %pdm%") do set resc=%%i
echo %resc% | findstr device >nul && (
scrcpy.exe --pause-on-exit=if-error %*
)
: yuanshi
scrcpy.exe --pause-on-exit=if-error %*
pause>nul
exit
The text was updated successfully, but these errors were encountered: