From 402919d6f2f9cb71c6fd812ea4a3c326a9e5c9da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 12 Sep 2024 09:00:53 +0800 Subject: [PATCH] feat: qucikLogin --- launcher/launcher-win10.bat | 4 ++-- launcher/launcher.bat | 6 ++---- launcher/quickLoginExample.bat | 4 ++++ 3 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 launcher/quickLoginExample.bat diff --git a/launcher/launcher-win10.bat b/launcher/launcher-win10.bat index b8d462b7..c70be0a2 100644 --- a/launcher/launcher-win10.bat +++ b/launcher/launcher-win10.bat @@ -5,7 +5,7 @@ if %errorLevel% == 0 ( echo Administrator mode detected. ) else ( echo Please run this script in administrator mode. - powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c cd /d \"%cd%\" && \"%~f0\"' -Verb runAs" + powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c cd /d \"%cd%\" && \"%~f0\" %1' -Verb runAs" exit ) @@ -35,6 +35,6 @@ if not exist "%QQpath%" ( set NAPCAT_MAIN_PATH=%NAPCAT_MAIN_PATH:\=/% echo (async () =^> {await import("file:///%NAPCAT_MAIN_PATH%")})() > %NAPCAT_LOAD_PATH% -"%NAPCAT_LAUNCHER_PATH%" "%QQPath%" "%NAPCAT_INJECT_PATH%" +"%NAPCAT_LAUNCHER_PATH%" "%QQPath%" "%NAPCAT_INJECT_PATH%" %1 REM "%NAPCAT_LAUNCHER_PATH%" "%QQPath%" "%NAPCAT_INJECT_PATH%" 123456 \ No newline at end of file diff --git a/launcher/launcher.bat b/launcher/launcher.bat index d3124507..370bd1b1 100644 --- a/launcher/launcher.bat +++ b/launcher/launcher.bat @@ -5,7 +5,7 @@ if %errorLevel% == 0 ( echo Administrator mode detected. ) else ( echo Please run this script in administrator mode. - powershell -Command "Start-Process 'wt.exe' -ArgumentList 'cmd /c cd /d \"%cd%\" && \"%~f0\"' -Verb runAs" + powershell -Command "Start-Process 'wt.exe' -ArgumentList 'cmd /c cd /d \"%cd%\" && \"%~f0\" %1' -Verb runAs" exit ) @@ -36,6 +36,4 @@ if not exist "%QQpath%" ( set NAPCAT_MAIN_PATH=%NAPCAT_MAIN_PATH:\=/% echo (async () =^> {await import("file:///%NAPCAT_MAIN_PATH%")})() > %NAPCAT_LOAD_PATH% -"%NAPCAT_LAUNCHER_PATH%" "%QQPath%" "%NAPCAT_INJECT_PATH%" - -REM "%NAPCAT_LAUNCHER_PATH%" "%QQPath%" "%NAPCAT_INJECT_PATH%" 123456 \ No newline at end of file +"%NAPCAT_LAUNCHER_PATH%" "%QQPath%" "%NAPCAT_INJECT_PATH%" %1 \ No newline at end of file diff --git a/launcher/quickLoginExample.bat b/launcher/quickLoginExample.bat new file mode 100644 index 00000000..0d1f9008 --- /dev/null +++ b/launcher/quickLoginExample.bat @@ -0,0 +1,4 @@ +@echo off +REM ./launcher.bat 123456 +REM ./launcher-win10.bat 123456 +REM 带有REM的为注释 删掉你需要的系统的那行REM这三个单词 修改QQ本脚本启动即可 \ No newline at end of file