当前位置:网站首页>Research on autojs wechat: many tests have found that occasionally click() returned true, but it did not click successfully, such as "address book" (solved)
Research on autojs wechat: many tests have found that occasionally click() returned true, but it did not click successfully, such as "address book" (solved)
2022-07-22 13:36:00 【PYB3】
Declare that I use autojs 4.1.1 Version and pro7.0.4-1 edition
Catalog
Scheme 1 : Click repeatedly until successful partial code
Option two : Continuous delay click 3 Sub local code
problem
Carry out many tests on the lightning simulator , Some buttons on wechat, such as “ Mail list ”, Called click(v.centerX(), v.centerY()) And returned. true, Actually, it didn't click successfully .
resolvent
- My solution is to delay clicking continuously 3 Time , That's plan two .
- myClick It's my own encapsulated button click function .
Scheme 1 : Click repeatedly until successful partial code
while(!myClick(" Mail list ")){
...
}
Scheme 1 is not recommended , Because to do that , Occasionally, there will be some unsuccessful problems , Although the function returns after clicking true.
Option two : Continuous delay click 3 Sub local code
if(myClick(" Mail list ")){
sleep(500);
myClick(" Mail list "); // Ensure that you can absolutely Click to enter the address book interface
sleep(500);
myClick(" Mail list ");
toastLog(" Check and successfully enter the main interface of address book ");
break;
}
I have tested this method dozens of times , Can successfully click .
summary
The most important thing to operate wechat is to test , Most functions can be solved by logic . Busy price comparison recently , The first phase of the project was developed early , The final effect is posted later .
Suggest or use auto Of 4.1.1 Version development ,pro 7.0.4-1 edition bug Too much instability .
边栏推荐
- 617. Merge binary tree
- Common management problems and solutions in automation equipment manufacturing industry
- [QNX hypervisor 2.2 user manual]8.7 virtual i/o (virtio)
- RecordRTC的视频录制,回放,截图,下载
- 数据库扩容也可以如此丝滑,MySQL千亿级数据生产环境扩容实战
- leetcode-735:行星碰撞
- [mysql] index transactions
- 简单易用的任务队列-beanstalkd
- 2.信息收集概述
- 解析云原生消息流系统 Apache Pulsar 能力及场景
猜你喜欢
Privacy-Preserving Generative Deep Neural Networks Support Clinical Data Sharing
【C】信息管理系统/通讯录通用模板(介绍静态、动态、文件三个版本)
自动化测试简历编写应该注意哪方面?有哪些技巧?
Leetcode-6116: calculate the value of Boolean binary tree
直播回顾| Apache Pulsar Meetup 精彩回放(含 PPT 下载)
[MySQL]索引事务
灰色关联分析
[MdSQL]表的增删查改(进阶)
Leetcode-814: binary tree pruning
Operating principle of JVM
随机推荐
224. 基本计算器-递归法
如何安装mysql
Leetcode-zj-future03: location of express transfer station
Leetcode-6119: subarray whose element value is greater than the change threshold
AMBA 2 AHB、AMBA 3 AHB(AHB_Lite)和AMBA 5 AHB协议比较
Deep and shallow copy
数据库扩容也可以如此丝滑,MySQL千亿级数据生产环境扩容实战
从源码上学习 MockMvc 的使用
How to use call, bind and apply correctly
灰色关联分析
【C语言进阶】关于柔性数组的学习
Leetcode-386: number of dictionary rows
解析云原生消息流系统 Apache Pulsar 能力及场景
It's a holiday. I need to read books carefully
[mysql] index transactions
leetcode-2337:移动片段得到字符串
深浅拷贝
稀土开发者大会|StreamNative 翟佳、刘德志分享云原生技术变革之路
Qt development application debug and release settings
Addition, deletion, query and modification of [mysql] table (basic)