level 5
刷牙洗脸星
楼主
该功能是基于adb shell命令,更多功能大家多看看shell命令即可
var js = ()=>{
return {
点击:(x,y)=> shell("input tap "+x+" "+y),
滑动:(x,y,xx,yy,d)=> shell("input swipe "+x+" "+y+" "+xx+" "+yy+" "+d),
输入:(str)=> shell("input text "+str),
模拟:(str)=> shell("input keyevent "+str)
}
}
let test = js().模拟(29);
if(网页链接 === 0){
log("成功使用");
}else{
error("使用失败");
}
2022年02月06日 17点02分
1
var js = ()=>{
return {
点击:(x,y)=> shell("input tap "+x+" "+y),
滑动:(x,y,xx,yy,d)=> shell("input swipe "+x+" "+y+" "+xx+" "+yy+" "+d),
输入:(str)=> shell("input text "+str),
模拟:(str)=> shell("input keyevent "+str)
}
}
let test = js().模拟(29);
if(网页链接 === 0){
log("成功使用");
}else{
error("使用失败");
}
