0

I'm trying to create a shortcut (.lnk) file that will launch scrcpy without showing the console window, but I need to be able to pin it to the taskbar and have the window and shortcut merge. Scrcpy is bundled with a vbs script that launches scrcpy through wscript, hiding the console, but when I made a shortcut opening that through wscript that made a duplicate window (icon?). I also found a somewhat promising question here about Pinning advertised shortcuts on the taskbar, which led me to an MS Docs page about AppUserModelIds, the only problem being I don't really understand how they work, or how to make a shortcut with them. 1

5
  • Please can you edit your question and add the vbscript code ? Commented Aug 15, 2022 at 7:25
  • github.com/Genymobile/scrcpy/issues/2159 Commented Aug 15, 2022 at 8:40
  • @rom1v And where is the vbscript code ???? scrcpy-noconsole.vbs ???? Commented Aug 15, 2022 at 9:31
  • In the scrcpy release archive for Windows (and also in the git repo). Commented Aug 16, 2022 at 11:50
  • I'm interested, here is the VB Script called scrcpy-noconsole.vbs strCommand = "cmd /c scrcpy.exe" For Each Arg In WScript.Arguments strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """" Next CreateObject("Wscript.Shell").Run strCommand, 0, false Commented Aug 17, 2024 at 5:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.