pull/3673/merge
ncnnnnn 1 month ago committed by GitHub
commit 6338541ce8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,7 +1,25 @@
strCommand = "cmd /c scrcpy.exe"
For Each Arg In WScript.Arguments
strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
Next
CreateObject("Wscript.Shell").Run strCommand, 0, false
Dim oShell,exeRs
Set oShell = CreateObject("WSCript.shell")
commandLine = "adb.exe devices"
Set exeRs = oShell.Exec(commandLine)
outs = exeRs.StdOut.ReadAll()
strs= Split(outs,VbCrLf)
Dim dev
for i=1 to ubound(strs)
dev = Replace(strs(i), "device", "")
dev = Replace(dev, " ", "")
dev = Trim(dev)
If (Len(dev)) then
v=MsgBox("scrcpy -s "&dev&"?",1)
If ( v =1 ) then
strCommand = strCommand & " -s " & dev
For Each Arg In WScript.Arguments
strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
Next
CreateObject("Wscript.Shell").Run strCommand, 0, false
End If
End If
next
Set oShell = Nothing
Set exeRs = Nothing

Loading…
Cancel
Save