Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
103.02k stars 10.01k forks source link

Settings file #4864

Closed JCKodel closed 3 weeks ago

JCKodel commented 4 weeks ago

Just opened this issue to thanks the developer for the amazing piece of software. As a Flutter developer, this is wonderful.

But, I have to complain about something, after all, it's github issues... lemme think...

Is your feature request related to a problem? Please describe. I made a .bat file to open the window at a specific location and specific size (bottom left corner of my second monitor, with 100% resolution rate (something Android Emulator cannot do, it always open whenever it wants)). Problem is: a console window is kept open running scrcpy.

Describe the solution you'd like An extra .exe or maybe even the same scrcpy.exe that shows no terminal window and it reads its configuration from a scrcpy.yml file in the user folder.

For example:

%USERPROFILE%\scrcpy.yml

no-audio: true
no-audio-playback: true
power-off-on-close: true
window-borderless: true
window-x: 3840
window-y: 466
window-width: 720
window-height: 1600

A simple double-click on scrcpy.exe, it just open with those settings, with no terminal window.

rom1v commented 3 weeks ago

Problem is: a console window is kept open running scrcpy.

As a workaround, you could copy and adapt scrcpy-noconsole.vbs.

JCKodel commented 3 weeks ago

Problem is: a console window is kept open running scrcpy.

As a workaround, you could copy and adapt scrcpy-noconsole.vbs.

Works perfectly to my use case.