-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Bug copying from application and pasting to pc! :( #1056
Comments
First, you need to select the text on the device, then click on Then, press Finally, press This is not straightforward, but unfortunately, we can only access the computer clipboard, not retrieve the content of a selection directly. |
Any suggestions on how to do or what to use? |
If you do what I just described, it doesn't work? What is the output in the console? |
Still struggling, it works the first time, and not as sequents, pasting even if the first message copied on the device... |
This "double copy" is quite unintuitive. Can't we simply automatically copy device<->pc clipboards? - each time ANdroid clipboard changes we update system clipboard and vice versa |
Yes, it is.
AFAIK, there is no way to be notified of clipboard change on Android. (Reading it every 500ms for example is too ugly for something used very occasionally.) Anyway, the behavior could be surprising: if I plug my device and run scrcpy (and let it open). I take my device in hands, do some stuff, copy text, etc. Then I go back to my computer, I don't expect the content of my computer clipboard to contain what I did on the phone. |
I think there is a way to listen for clipboard change Mabye we should think about "scrscpy support app//service" that runs on the device and enables better integration? And enable/disable this "sync clipboard" option when needed? |
Thank you, I added it to my TODO list, I will investigate later. |
@igorwojda I wrote a quick PoC to validate that it works in the context of scrcpy: it works. Hopefully, I will implement this soon (maybe next week?). |
Automatically synchronize the device clipboard to the computer any time it changes. This allows seamless copy-paste from Android to the computer. Fixes #1056 <#1056 (comment)>
Automatically synchronize the device clipboard to the computer any time it changes. This allows seamless copy-paste from Android to the computer. Fixes #1056 <#1056 (comment)>
@igorwojda I just implemented it. Please test #1423. |
Works great! THX Should I open the issue? |
@igorwojda In v1.14, it should work: https://github.com/Genymobile/scrcpy/releases/tag/v1.14 It will be improved by #1465. |
I can't copy text messages inside the app and paste it to my computer, even using the ctrl + shift + v commands.
Already tested on various android devices and windows.
Help me Please...
The text was updated successfully, but these errors were encountered: