有办法指定范围找控件吗?现在找得到点击不成!
autojs吧
全部回复
仅看楼主
level 4
klh5352782 楼主
有办法指定范围找控件吗?现在找得到点击不成!
2019年08月20日 22点08分 1
level 4
klh5352782 楼主
范围找控件var w = className("TextView").boundsInside(0, 0, device.width, device.height / 2).findOne(); log(w.text()); 感觉应该是这个
2019年08月21日 04点08分 2
level 13
需要控件的clickable属性为true才有可能使用w.click();
建议投入使用之前先做测试 node.click()无效时 可使用 click(node.centerX(), node.centerY())之类的基于无障碍的方法实现点击
2019年08月21日 04点08分 3
level 2
var fanwei = text("页面显示的控件名称").findOne().bounds();
click(fanwei.centerX(), fanwei.centerY());
2019年08月28日 06点08分 4
完美解决了这个问题,解决十分感谢!!!
2020年07月12日 18点07分
完美解决了这个问题,十分感谢!!!
2020年07月12日 18点07分
1