Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.52k stars 10.45k forks source link

Auto-hide Cmdprompt server window after start? And auto-exit adb.exe at scrcpy exit? #5128

Open tobwz opened 1 month ago

tobwz commented 1 month ago

As far as I can see scrcpy starts at first its local server and opens a CmdPrompt window for it.

Can I somehow prevent the visibility of this window? It should run hidden in background (or at most in Systray)

Related to this: when I exit scrcpy the adb.exe process continues to run in background.

How can I auto-exit adb.exe when I exit scrcpy window in foreground?

rom1v commented 1 month ago

Can I somehow prevent the visibility of this window?

Use scrcpy-noconsole.vbs: https://github.com/Genymobile/scrcpy/blob/master/doc/windows.md#run

More details: https://github.com/Genymobile/scrcpy/pull/1988#issuecomment-760768688

How can I auto-exit adb.exe when I exit scrcpy window in foreground?

--kill-adb-on-close #2580