sucutey

Results 14 comments of sucutey

```events.removeAllListeners(eventName)```

1是找控件10秒和2/3是等待10秒后找,超过10秒什么也找不到了,既用超时又不用循环,还想随时找控件? 不用循环的话,还不如直接在方法里面 return pUs.findOne().find()

``` let pm = context.getPackageManager() let apps = pm.getInstalledApplications(0).toArray().map(app => app.loadLabel(pm)); log(apps) ``` 自己动手丰衣足食

和安装应用界面一样 解决方法,上拉快捷中心选择布局范围分析 (没有看到快捷方式的话,在更多里面自己添加) 安装界面丢失悬浮窗 ![Screenshot_20231002_114746](https://github.com/SuperMonster003/AutoJs6/assets/143495929/fe612e26-7e18-4dc9-856a-92c98ec66854) 上拉快捷中心分析布局 ![Screenshot_20231002_115405](https://github.com/SuperMonster003/AutoJs6/assets/143495929/3ef84590-0a03-478e-a4a1-2f4afeb9fdf0) 点击布局分析,没有反应,不管他直接返回,退出安装界面,就可以获取到安装应用界面的控件布局了 ![Screenshot_20231002_114635](https://github.com/SuperMonster003/AutoJs6/assets/143495929/9f5741c9-fbe4-4de8-b4a5-33bbc7b40600) 获取的布局展示 ![Screenshot_20231002_114756](https://github.com/SuperMonster003/AutoJs6/assets/143495929/ac820379-7967-4479-be70-887c361685d3) ![Screenshot_20231002_114803](https://github.com/SuperMonster003/AutoJs6/assets/143495929/7d76c9a5-2b75-4d7b-bc40-f19d85eb2dcf) ![Screenshot_20231002_114819](https://github.com/SuperMonster003/AutoJs6/assets/143495929/98aca4d8-ef83-4813-9d7a-0bf0691da0da)

无障碍故障时候能成功执行pickup函数并且不报错吗

把日志文件写入本地,关键提示用toast,完美解决(迫真)

可以隐藏啊,你写的什么脚本,非要一直监听日志输出

``` //自己改改吧 var 显示几行日志=6 var 已经存在的日志长度限制=100 _log=log; var window=floaty.rawWindow( ); w=Math.floor(device.width) h=Math.floor(device.height/5) window.setSize(w,h) window.setPosition(0,device.height/2) var 计时函数=function (){ var count=0 return function (){ ui.run( ()=>{window.计时.text(s_to_hs(count)+'')} ) return count++; } }() //计时...

错在list_selector变量那里,for循环里面的```list_xxx.childCount(i)```,会拼接成 ```list_xxx.childCount(0).childCount(1).childCount(2).findOnce()``` 而不是 ```list_xxx.childCount(0).findOnce()``` ```list_xxx.childCount(1).findOnce()``` ```list_xxx.childCount(2).findOnce()```

``` const t =text("text").id("id") for(let i =0;i