Code Monkey home page Code Monkey logo

Comments (5)

TonyJiangWJ avatar TonyJiangWJ commented on July 4, 2024

设置改一下参数 README有说明

from ant-forest.

kovenkoo avatar kovenkoo commented on July 4, 2024

我这边重启手机后正常,但是只要一关闭auto.js再打开,就会获取截图权限失败;只有重启后第一次打开才正常运行。

from ant-forest.

54lH avatar 54lH commented on July 4, 2024

同样的问题,设置中“获取截图等待时间”已经调的非常大了。

from ant-forest.

TonyJiangWJ avatar TonyJiangWJ commented on July 4, 2024
  • 你们描述的这个问题,是一开始的截图权限获取失败,这个问题在华为手机上似乎比较容易出现,和脚本无关,是AutoJS和华为不太兼容,估计是华为改了底层的一些功能导致的。此问题同时存在于部分云手机上。
  • 你们可以自行尝试如下代码,如果可用,尝试关闭是否需要自动授权截图权限。如果不可用,那无能为力,只有换手机或者修改AutoJS源码
    requestScreenCapture()
    console.show()
    let img = captureScreen()
    log('图片大小:' + img.getWidth() + ', ' + img.getHeight())

from ant-forest.

54lH avatar 54lH commented on July 4, 2024

重新安装AutoJS后好像就可以了

from ant-forest.

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.