Skip to content

Bug copying from application and pasting to pc! :( #1056

Closed

Description

@cruzado92

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...

Activity

  1. rom1v commented on Jan 2, 2020

    @rom1v
    Collaborator

    First, you need to select the text on the device, then click on Copy (on the device). This copies the text to the clipboard (scrcpy is not involved).

    Then, press Ctrl+c in scrcpy to copy the device clipboard to the computer clipboard.

    Finally, press Ctrl+v on your computer where you want to paste.

    This is not straightforward, but unfortunately, we can only access the computer clipboard, not retrieve the content of a selection directly.

  2. cruzado92 commented on Jan 3, 2020

    @cruzado92
    Author

    Any suggestions on how to do or what to use?

  3. rom1v commented on Jan 3, 2020

    @rom1v
    Collaborator

    If you do what I just described, it doesn't work?

    What is the output in the console?

  4. cruzado92 commented on Jan 9, 2020

    @cruzado92
    Author

    Still struggling, it works the first time, and not as sequents, pasting even if the first message copied on the device...

  5. igorwojda commented on May 20, 2020

    @igorwojda

    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

  6. rom1v commented on May 20, 2020

    @rom1v
    Collaborator

    This "double copy" is quite unintuitive.

    Yes, it is.

    Can't we simply automatically copy device<->pc clipboards? - each time ANdroid clipboard changes we update system clipboard and vice versa

    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.

  7. igorwojda commented on May 20, 2020

    @igorwojda

    I think there is a way to listen for clipboard change
    http://edgedevstudio.blogspot.com/2018/10/clipboard-broadcast-listen-to-changes.html

    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?

  8. rom1v commented on May 20, 2020

    @rom1v
    Collaborator

    I think there is a way to listen for clipboard change
    http://edgedevstudio.blogspot.com/2018/10/clipboard-broadcast-listen-to-changes.html

    Thank you, I added it to my TODO list, I will investigate later.

  9. rom1v commented on May 20, 2020

    @rom1v
    Collaborator

    @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?).

  10. added 2 commits that reference this issue on May 23, 2020
    5be3b85
    0ae6887
  11. rom1v commented on May 23, 2020

    @rom1v
    Collaborator

    @igorwojda I just implemented it. Please test #1423.

  12. added a commit that references this issue on May 24, 2020
    acc4ef3
  13. igorwojda commented on Jun 18, 2020

    @igorwojda

    Works great! THX
    Now we need 2nd direction equivalent -> "Implement seamless copy-paste from computer to Android"

    Should I open the issue?

  14. rom1v commented on Jun 18, 2020

    @rom1v
    Collaborator

    @igorwojda In v1.14, it should work: https://github.com/Genymobile/scrcpy/releases/tag/v1.14

    It will be improved by #1465.

  15. added a commit that references this issue on Nov 19, 2026
    5c3f540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions