Giter VIP home page Giter VIP logo

Comments (11)

NateScarlet avatar NateScarlet commented on May 23, 2024

这个坐标在1080x1920的范围内 可能200毫秒算作了点击

from auto-derby.

fatinghenji avatar fatinghenji commented on May 23, 2024

我去调整下时间试试

from auto-derby.

fatinghenji avatar fatinghenji commented on May 23, 2024

不是时间的问题,是滑动距离的问题。
1391和1353太近了,被识别成点击了
adb shell input swipe 232 1391 232 1285 200这个可以正常滑动。

from auto-derby.

fatinghenji avatar fatinghenji commented on May 23, 2024

需要我改动哪里的代码才可以正常使用呢?

from auto-derby.

Small-Ku avatar Small-Ku commented on May 23, 2024

我猜是dy的部分?

action.drag(
rp.vector2((100, 600), 466),
dy=rp.vector(-50, 466),
duration=0.2,
)

from auto-derby.

fatinghenji avatar fatinghenji commented on May 23, 2024

我猜是dy的部分?

action.drag(
rp.vector2((100, 600), 466),
dy=rp.vector(-50, 466),
duration=0.2,
)

没太看懂应该怎么修改

from auto-derby.

NateScarlet avatar NateScarlet commented on May 23, 2024

rp.vector(-50, 466) 代表相对于466宽的屏幕向上滑动50像素

不过不能调太大 一次滑动不能超过一个比赛的高度 不然会漏比赛

from auto-derby.

NateScarlet avatar NateScarlet commented on May 23, 2024

奇怪的是相对466的屏幕都是50像素了 相对于你1080的屏幕为啥会只有40

from auto-derby.

NateScarlet avatar NateScarlet commented on May 23, 2024

你用的是你自己改过的版本? 这里的时长不应该是200毫秒

重置一下试试

from auto-derby.

fatinghenji avatar fatinghenji commented on May 23, 2024

你用的是你自己改过的版本?

应该不是吧……我也说不好。

重置一下试试

下载了最新的版本,在跑了,看看还有没有问题。

from auto-derby.

NateScarlet avatar NateScarlet commented on May 23, 2024

我的也出现了 但是坐标是对的

DEBUG [2021-06-22 03:42:16]:auto_derby.clients.adb:114: drag: input swipe 366 1390 366 1622 100

我加大时长看看

from auto-derby.

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.