Giter Site home page Giter Site logo

Comments (5)

Jinnrry avatar Jinnrry commented on July 28, 2024

报错是啥,我也是用的雷电,安卓11我没测试过,我之前是安卓7

from robothelper.

Valkdandy avatar Valkdandy commented on July 28, 2024

我使用了另一个截图代码,解决了问题.谢谢.

能不能问一下你有什么好的办法获得用户后台点击坐标吗.root 也可以.

Runtime.getRuntime().exec(new String[]{"/system/bin/su","-c", "getevent"}); 这个我一直无法成功获得数据流 InputStream

from robothelper.

Jinnrry avatar Jinnrry commented on July 28, 2024

cat /dev/input/event2

你直接读取input/event文件里面的内容就行了,这个是linux下面输入设备的资源文件。你只需要找到你需要监听第几个输入设备,然后读取就行了。

sendevent

getevent

这两个是安卓读取和输入event的实现源码,你看下这个就知道了

from robothelper.

Valkdandy avatar Valkdandy commented on July 28, 2024

谢谢你,我去试试. 我仔细看了你的自制按键精灵所有文章,真是佩服死了.我也是想自制一款按键精灵.也花了不少时间了.要是早看见你的项目,就好了.

from robothelper.

Valkdandy avatar Valkdandy commented on July 28, 2024

我当时以为按键精灵不就是点击截图找色嘛,结果一头栽进去了,谷歌正好严格限制这些, cmd命令也是费了牛劲,说起来真惨...按键精灵还是有点技术含量,一般人真是太难了,只能乖乖用按键了.可惜用它不但花钱广告,很多功能实现不了.还有很多莫名的程序bug,经常死得莫名其妙

from robothelper.

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.