diff --git a/QuestToolbox.bat b/QuestToolbox.bat index 798b4fd..9878720 100644 --- a/QuestToolbox.bat +++ b/QuestToolbox.bat @@ -1,9 +1,16 @@ @echo off +:: Developed By: +:: mitchv2020 and lordnikon + + + :: Sets the window size mode con: cols=90 lines=20 + :: Checks if the requirements folder exists if not exist ".\Requirements" goto noRequirements if exist ".\Requirements" goto folderExist + :noRequirements :: Tells the user to redownload if the requirements folder is missing echo  The requirements folder does not exist, please redownload!  @@ -17,12 +24,10 @@ mode con: cols=72 lines=20 :: Changes directory into the requirements folder, which is needed for KeepAlive and the UI cd Requirements -SetLocal EnableDelayedExpansion - :MainMenu cls title Quest Toolbox -echo Quest Toolbox Version: v1.3.1 +echo Quest Toolbox Version: v1.3.2 echo ========================================== echo Which would you like to do? echo ========================================== @@ -40,57 +45,90 @@ if "%errorlevel%"=="8" goto update if "%errorlevel%"=="9" goto devcredits goto MainMenu -:uninstallAPKPrompt + + +:capture cls +Title Change Recording Res/FPS +echo Change Recording Res/FPS echo ========================================== -echo Are you sure you want to uninstall an App? +echo Which capture commands do you want to run? echo ========================================== -cmdMenuSel f870 "Yes" "No" -if "%errorlevel%"=="1" goto uninstallAPK -if "%errorlevel%"=="2" goto MainMenu -:uninstallAPK +:captureInput +cmdMenuSel f870 "1920x1080 60fps (Widescreen)" "1280x1280 60fps (Square)" "1080x1920 60fps (Youtube Shorts)" "Custom res/fps" "==Back==" + +if "%errorlevel%"=="1" goto wide +if "%errorlevel%"=="2" goto square +if "%errorlevel%"=="3" goto shorts +if "%errorlevel%"=="4" goto custom +if "%errorlevel%"=="5" goto MainMenu +goto capture + +:wide cls -echo ========================================== -echo A new window will open with all the apps installed. -echo ========================================== +title Widescreen +adb shell setprop debug.oculus.capture.width 1920 +adb shell setprop debug.oculus.capture.height 1080 +adb shell setprop debug.oculus.capture.bitrate 10000000 +adb shell setprop debug.oculus.foveation.level 0 +adb shell setprop debug.oculus.capture.fps 60 +Echo done. pause -start packages.bat -goto uninstalling +goto MainMenu -:uninstalling -cls -echo ========================================== -echo Please Enter the package name of -echo the app you would like to uninstall (Without the "package:") -echo ========================================== -echo  Type "exit" to cancel!! -set APKuninst= -set /p APKuninst=Answer: -if "%APKuninst%"=="" goto wrongInputAPK -if "%APKuninst%"=="exit" goto MainMenu +:square cls -title Uninstalling APK.... -echo Uninstalling APK.... -adb uninstall %APKuninst% +title Square +adb shell setprop debug.oculus.capture.width 1280 +adb shell setprop debug.oculus.capture.height 1280 +adb shell setprop debug.oculus.capture.bitrate 10000000 +adb shell setprop debug.oculus.foveation.level 0 +adb shell setprop debug.oculus.capture.fps 60 +Echo done. pause goto MainMenu -:wrongInputAPK +:shorts cls -echo Please enter a package name! +title Youtube Shorts +adb shell setprop debug.oculus.capture.width 1080 +adb shell setprop debug.oculus.capture.height 1920 +adb shell setprop debug.oculus.capture.bitrate 10000000 +adb shell setprop debug.oculus.foveation.level 0 +adb shell setprop debug.oculus.capture.fps 60 +Echo done. pause -goto uninstalling +goto MainMenu -:update +:custom cls -echo Opening GitHub page... -:: Opens a browser tab with the latest release -start https://www.github.com/mitchv2020/QuestToolbox/releases/latest +title Custom Option + +set width= +set /p width=Custom Width: + +set height= +set /p height=Custom Height: + +echo Due to oculus capping FPS, min is 30 and max is 90! +set fps= +set /p fps=Custom FPS: + +adb shell setprop debug.oculus.capture.width %width% +adb shell setprop debug.oculus.capture.height %height% +adb shell setprop debug.oculus.capture.bitrate 10000000 +adb shell setprop debug.oculus.foveation.level 0 +adb shell setprop debug.oculus.capture.fps %fps% +Echo done. +pause goto MainMenu + + :mirrorScreen cls +title Stream Quest to PC echo ========================================== echo Do you have a Quest 1 or 2? echo ========================================== @@ -207,6 +245,8 @@ scrcpy --max-fps %Q2streamFPS% --crop 1600:900:2017:510 --bit-rate %Q2bitrate%M pause goto MainMenu + + :sideloadPrompt cls title Do you want to sideload an APK? @@ -244,30 +284,119 @@ echo Please Enter a directory pause goto sideload -:devcredits + + +:uninstallAPKPrompt cls echo ========================================== -echo Developed by: +echo Are you sure you want to uninstall an App? echo ========================================== +cmdMenuSel f870 "Yes" "No" +if "%errorlevel%"=="1" goto uninstallAPK +if "%errorlevel%"=="2" goto MainMenu -:: Options -cmdMenuSel f870 "mitchv2020" "LordNikonYT" "==Back==" -if "%errorlevel%"=="1" goto dev1 -if "%errorlevel%"=="2" goto dev2 -if "%errorlevel%"=="3" goto MainMenu -goto devcredits +:uninstallAPK +cls +echo ========================================== +echo A new window will open with all the apps installed. +echo ========================================== +pause +start packages.bat +goto uninstalling -:dev1 +:uninstalling cls -:: Redirects the user to mitchv2020's youtube channel -start https://www.youtube.com/channel/UCZW2Nxa-fCm6V8bvDeF0Fyg -goto :devcredits +echo ========================================== +echo Please Enter the package name of +echo the app you would like to uninstall (Without the "package:") +echo ========================================== +echo  Type "exit" to cancel!! +set APKuninst= +set /p APKuninst=Answer: +if "%APKuninst%"=="" goto wrongInputAPK +if "%APKuninst%"=="exit" goto MainMenu +cls +title Uninstalling APK.... +echo Uninstalling APK.... +adb uninstall %APKuninst% +pause +goto MainMenu -:dev2 +:wrongInputAPK cls -:: Redirects the user to lordnikon's youtube channel -start https://www.youtube.com/channel/UCTaoq74t_tMPA5jUITxB3lw -goto :devcredits +echo Please enter a package name! +pause +goto uninstalling + + + +:keepalive +cls +cd ./Requirements +start KeepAlive.bat +echo Started KeepAlive... +goto MainMenu + + + +:refreshrate +cls +echo Refresh Rate +title Which refresh rate do you want to use? +echo ========================================== +echo Which Refresh Rate do you want to use? +echo ========================================== + +cmdMenuSel f870 "60Hz" "72Hz" "90Hz (Quest 2 ONLY)" "120Hz (Quest 2 ONLY)" "==Back==" + +if "%errorlevel%"=="1" goto 60 +if "%errorlevel%"=="2" goto 72 +if "%errorlevel%"=="3" goto 90 +if "%errorlevel%"=="4" goto 120 +if "%errorlevel%"=="5" goto MainMenu +goto refreshrate + +:60 +cls +title Updating Refresh Rate... +echo Updating Refresh Rate... +adb shell setprop debug.oculus.refreshRate 60 +title Done! +echo Done! +pause +goto refreshrate + +:72 +cls +title Updating Refresh Rate... +echo Updating Refresh Rate... +adb shell setprop debug.oculus.refreshRate 72 +title Done! +echo Done! +pause +goto refreshrate + +:90 +cls +title Updating Refresh Rate... +echo Updating Refresh Rate... +adb shell setprop debug.oculus.refreshRate 90 +title Done! +echo Done! +pause +goto refreshrate + +:120 +cls +title Updating Refresh Rate... +echo Updating Refresh Rate... +adb shell setprop debug.oculus.refreshRate 120 +title Done! +echo Done! +pause +goto refreshrate + + :ADBMenu cls @@ -377,25 +506,6 @@ title Connected! pause goto MainMenu - -:capture -cls -Title Custom Capture Quest -echo Custom Capture Quest -echo ========================================== -echo Which capture commands do you want to run? -echo ========================================== - -:captureInput -cmdMenuSel f870 "1920x1080 90fps (Widescreen)" "1280x1280 90fps (Square)" "1080x1920 90fps (Youtube Shorts)" "Set custom res/fps" "==Back==" - -if "%errorlevel%"=="1" goto wide -if "%errorlevel%"=="2" goto square -if "%errorlevel%"=="3" goto shorts -if "%errorlevel%"=="4" goto custom -if "%errorlevel%"=="5" goto MainMenu -goto capture - :disconnect cls title Do you want to disconnect wireless ADB? @@ -419,125 +529,38 @@ title Disconnected! pause goto MainMenu -:wide -cls -title Widescreen -adb shell setprop debug.oculus.capture.width 1920 -adb shell setprop debug.oculus.capture.height 1080 -adb shell setprop debug.oculus.capture.bitrate 10000000 -adb shell setprop debug.oculus.foveation.level 0 -adb shell setprop debug.oculus.fullRateCapture 1 -Echo done. -pause -goto capture -:square -cls -title Square -adb shell setprop debug.oculus.capture.width 1280 -adb shell setprop debug.oculus.capture.height 1280 -adb shell setprop debug.oculus.capture.bitrate 10000000 -adb shell setprop debug.oculus.foveation.level 0 -adb shell setprop debug.oculus.fullRateCapture 1 -Echo done. -pause -goto capture - -:shorts -cls -title Youtube Shorts -adb shell setprop debug.oculus.capture.width 1080 -adb shell setprop debug.oculus.capture.height 1920 -adb shell setprop debug.oculus.capture.bitrate 10000000 -adb shell setprop debug.oculus.foveation.level 0 -adb shell setprop debug.oculus.fullRateCapture 1 -Echo done. -pause -goto capture -:custom +:update cls -title Custom Option - -set width= -set /p width=Custom Width: +echo Opening GitHub page... +:: Opens a browser tab with the latest release +start https://www.github.com/mitchv2020/QuestToolbox/releases/latest +goto MainMenu -set height= -set /p height=Custom Height: -echo Due to oculus capping FPS, min is 30 and max is 90! -set fps= -set /p fps=Custom FPS: -adb shell setprop debug.oculus.capture.width %width% -adb shell setprop debug.oculus.capture.height %height% -adb shell setprop debug.oculus.capture.bitrate 10000000 -adb shell setprop debug.oculus.foveation.level 0 -adb shell setprop debug.oculus.capture.fps %fps% -Echo done. -pause -goto capture - -:keepalive -cls -cd ./Requirements -start KeepAlive.bat -echo Started KeepAlive... -goto MainMenu - -:refreshrate +:devcredits cls -echo Refresh Rate -title Which refresh rate do you want to use? echo ========================================== -echo Which Refresh Rate do you want to use? +echo Developed by: echo ========================================== -cmdMenuSel f870 "60Hz" "72Hz" "90Hz (Quest 2 ONLY)" "120Hz (Quest 2 ONLY)" "==Back==" - -if "%errorlevel%"=="1" goto 60 -if "%errorlevel%"=="2" goto 72 -if "%errorlevel%"=="3" goto 90 -if "%errorlevel%"=="4" goto 120 -if "%errorlevel%"=="5" goto MainMenu -goto refreshrate - -:60 -cls -title Updating Refresh Rate... -echo Updating Refresh Rate... -adb shell setprop debug.oculus.refreshRate 60 -title Done! -echo Done! -pause -goto refreshrate - -:72 -cls -title Updating Refresh Rate... -echo Updating Refresh Rate... -adb shell setprop debug.oculus.refreshRate 72 -title Done! -echo Done! -pause -goto refreshrate +:: Options +cmdMenuSel f870 "mitchv2020" "LordNikonYT" "==Back==" +if "%errorlevel%"=="1" goto dev1 +if "%errorlevel%"=="2" goto dev2 +if "%errorlevel%"=="3" goto MainMenu +goto devcredits -:90 +:dev1 cls -title Updating Refresh Rate... -echo Updating Refresh Rate... -adb shell setprop debug.oculus.refreshRate 90 -title Done! -echo Done! -pause -goto refreshrate +:: Redirects the user to mitchv2020's youtube channel +start https://www.youtube.com/channel/UCZW2Nxa-fCm6V8bvDeF0Fyg +goto :devcredits -:120 +:dev2 cls -title Updating Refresh Rate... -echo Updating Refresh Rate... -adb shell setprop debug.oculus.refreshRate 120 -title Done! -echo Done! -pause -goto refreshrate +:: Redirects the user to lordnikon's youtube channel +start https://www.youtube.com/channel/UCTaoq74t_tMPA5jUITxB3lw +goto :devcredits