Giter VIP home page Giter VIP logo

Comments (7)

drauggres avatar drauggres commented on July 26, 2024 2

OK, now I understand what you want. It should be easy to do, but not sure when I could do it.
You can try to implement this yourself, basically you need to:

  1. add listeners for keydown and keyup events
  2. create KeyCodeControlEvent in these listeners
  3. call connection.send(event) with this KeyCodeControlEvent as argument.

Look here for example.

P.S. you know that you can type text into input and when press Send as keys button, right?

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

It is not possible to send non-ASCII characters with keyboard events.
Try develop branch. It has clipboard support from scrcpy v1.9 (but some things may be broken).

from ws-scrcpy.

wan766405890 avatar wan766405890 commented on July 26, 2024

Original Scrcpy Support Keyboard Event

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

Are you sure? (Genymobile/scrcpy#37 Genymobile/scrcpy#632). Or do you mean something else?

from ws-scrcpy.

wan766405890 avatar wan766405890 commented on July 26, 2024

what i mean is input text and cut/paste by keyboard directly! I am sure Scrcpy support it!

from ws-scrcpy.

daigaigai520 avatar daigaigai520 commented on July 26, 2024

hi, can you update the version?
newest scrcpy version is 1.21.1, and TYPE_INJECT_MOUSE_EVENT has been removed.

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

@daigaigai520 I plan to do it, but no promises. Any help is appreciated and PRs are welcome (scrcpy fork is here).

P.S. Please open separate issues for different problems.

from ws-scrcpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.