//
@魅影丶丿小郑 那无限每隔10毫秒点击手机屏幕任意位置一次怎么编?
auto();
console.show();
console.info("按音量上键开始,按音量下键结束");
events.observeKey();
//按音量上键结束
events.onKeyDown("volume_down", function(event){
threads.shutDownAll();
console.info("已结束");
exit();
});
events.onKeyDown("volume_up", function(event){
threads.start(function(){
//无限每隔10ms点击屏幕任意位置一次
while(true){
var x = random(0, device.width);
var y = random(0, device.height);
click(x, y);
console.log("(%d, %d)", x, y);
sleep(1000);
}
});
});