Giter VIP home page Giter VIP logo

Comments (6)

lunachy avatar lunachy commented on September 4, 2024

而且好友排行榜也没有了,
while(!friendListWaiting()) sleep(1000); 这行会产生死循环

from ant-forest-autoscript.

ksfallen avatar ksfallen commented on September 4, 2024

直接拿好友列表, 进行循环

      friends_list = className('android.view.View').depth(7).find()
      if (friends_list.length > 0) {
        friends_list.forEach(function (fri) {
          if (fri.visibleToUser() && fri.childCount() > 3)
            // ...
        });
        // ...
      }

from ant-forest-autoscript.

ksfallen avatar ksfallen commented on September 4, 2024

而且好友排行榜也没有了,
while(!friendListWaiting()) sleep(1000); 这行会产生死循环

总排行榜 代替 好友排行榜

from ant-forest-autoscript.

DeserveL avatar DeserveL commented on September 4, 2024

直接拿好友列表, 进行循环

      friends_list = className('android.view.View').depth(7).find()
      if (friends_list.length > 0) {
        friends_list.forEach(function (fri) {
          if (fri.visibleToUser() && fri.childCount() > 3)
            // ...
        });
        // ...
      }

fri.childCount() 为1,求解

from ant-forest-autoscript.

835732349 avatar 835732349 commented on September 4, 2024

直接拿好友列表, 进行循环

      friends_list = className('android.view.View').depth(7).find()
      if (friends_list.length > 0) {
        friends_list.forEach(function (fri) {
          if (fri.visibleToUser() && fri.childCount() > 3)
            // ...
        });
        // ...
      }

fri.childCount() 为1,求解

friends_list = className('android.view.View').depth(7).find()这句代码意思是找处于第七层的view,处于第七层的view都可能被寻找到,所以你找到的可能不是好友列表的view

from ant-forest-autoscript.

AtypicalCoder avatar AtypicalCoder commented on September 4, 2024

直接拿好友列表, 进行循环

      friends_list = className('android.view.View').depth(7).find()
      if (friends_list.length > 0) {
        friends_list.forEach(function (fri) {
          if (fri.visibleToUser() && fri.childCount() > 3)
            // ...
        });
        // ...
      }

蚂蚁森林全部改成viewgroup了,用控件没法识别的到呀

from ant-forest-autoscript.

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.