From 1a3ea2ba7f73aeb7c475eaed017cd6b8c31398b7 Mon Sep 17 00:00:00 2001 From: slingmint Date: Wed, 20 Jan 2021 13:13:42 -0600 Subject: [PATCH] Pass arguments through to scrcpy.exe --- data/scrcpy-noconsole.vbs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/data/scrcpy-noconsole.vbs b/data/scrcpy-noconsole.vbs index e11adba56d..4241737b15 100644 --- a/data/scrcpy-noconsole.vbs +++ b/data/scrcpy-noconsole.vbs @@ -1 +1,14 @@ -CreateObject("Wscript.Shell").Run "cmd /c scrcpy.exe", 0, false +Set Args = WScript.Arguments + +strCommand = "cmd /c scrcpy.exe" + +If (Args.Count > 0) Then + strArg = "" + For Each Arg In Args + strArg = strArg + " " + Arg + Next + + strCommand = strCommand + strArg +End If + +CreateObject("Wscript.Shell").Run strCommand, 0, false