Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start scrcpy with python script #5293

Open
nicolasvahidzein opened this issue Sep 15, 2024 · 2 comments
Open

Cannot start scrcpy with python script #5293

nicolasvahidzein opened this issue Sep 15, 2024 · 2 comments

Comments

@nicolasvahidzein
Copy link

Hello,

do you know I can start this app via python and not have the win cmd window on windows stay open? There are many print logs that prevent the window from closing.

If i force close the window it also closes the app.

Here is my code and i literally tried 10 different approaches:

subprocess.Popen(['C:/scrcpy-win64-v1.23/scrcpy.exe'], shell=False)

Thanks

@rom1v
Copy link
Collaborator

rom1v commented Sep 15, 2024

Does this flag help:

subprocess.Popen(['app.exe'], creationflags=subprocess.CREATE_NO_WINDOW)

?

@nicolasvahidzein
Copy link
Author

Brilliant, thank you so much. It is exactly what i needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants