Skip to content
Discussion options

You must be logged in to vote

https://gkd.li/api/interfaces/RawRuleProps#swipearg

https://gkd.li/api/type-aliases/SwipeArg

上滑的,其它方向的自己改。
另外建议到设置那里开 轨迹提示 测试。

{
  id: 'com.ss.android.ugc.aweme.lite', // (可改为其它支持上滑的应用测试)
  name: 'dy极速版',
  groups: [
    {
      key: 666,
      name: '测试-上滑',
      desc: '进视频页1.5s后,只上滑1次',
      rules: [
        {
          fastQuery: true,
          matchRoot: true,
          actionMaximum: 1,
          actionDelay: 1500, //延时1.5秒
          action: 'swipe',   //滑动
          swipeArg: {
            start: {  //起始坐标
              x: 'width * 0.5', 
              y: 'height * 0.7' 
            },
            end: {   //终点坐标
              x: 'width * 0.5', 
              y: 'height * 0.3'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lisonge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants