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

Close the prompt automatically after running #3690

Open
5vr opened this issue Jan 24, 2023 · 3 comments
Open

Close the prompt automatically after running #3690

5vr opened this issue Jan 24, 2023 · 3 comments

Comments

@5vr
Copy link

5vr commented Jan 24, 2023

Upon opening the app using "scrcpy -S" shortcut, the cmd prompt also opens.
To close scrcpy, I have to either close the app and then the prompt or close the prompt and then press Cancel on the Win10 dialog box which appears saying "scrcpy.exe has stopped working".
This just feels unproductive. Is there a way to just open the window with scrcpy, no cmd prompt?

@rom1v
Copy link
Collaborator

rom1v commented Jan 24, 2023

Upon opening the app using "scrcpy -S" shortcut, the cmd prompt also opens.

How do you create such a "shortcut"?

To close scrcpy, I have to either close the app and then the prompt

Closing the app should also close the prompt :/

close the prompt and then press Cancel on the Win10 dialog box which appears saying "scrcpy.exe has stopped working".

Closing the console literally kills the app started from that console (it's unexpected that it "crashes" though).

Is there a way to just open the window with scrcpy, no cmd prompt?

Yes, run scrcpy-noconsole.vbs (you can adapt the script to pass more parameters).

Also, you should read this comment for more info.

@5vr
Copy link
Author

5vr commented Jan 24, 2023

To create such shortcut: Add scrcpy to path > right click > new > shortcut > type "scrcpy -S" > next

This is what happens when I close the prompt
image

scrcpy-noconsole.vbs does not work on taskbar smh.

Please help.

@rom1v
Copy link
Collaborator

rom1v commented Jan 24, 2023

scrcpy-noconsole.vbs does not work on taskbar smh.

#2159

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