auto();
device.keepScreenOn();
console.show();
ttime = toTime().slice(0,8);
let ntime = ttime +"095958";
//var num=prompt("请输入要抢购的数量");
//log("将于"+ntime+"开始抢购,抢购数量为"+num+"瓶,请打开茅台预售页面等待抢购");
function toTime() {
return new java.text.SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
}
function slide() {
WidthOne = random(800, 1000);
HeightOne = random(2000, 2300);
WidthTwo = random(800, 1000);
HeightTwo = random(500, 700);
timeGo = random(250, 600);
swipe( WidthTwo, HeightTwo,WidthOne, HeightOne, timeGo);
}
log("等待抢购...")
while(true){
if (toTime() > ntime) {
log("时间到,开始抢购");
break;
}
sleep(200);
}
while(true){
if(className("android.view.View").text("立即抢购").exists()){
className("android.view.View").text("立即抢购").findOne().c
autojs
最新推荐文章于 2022-12-23 19:05:05 发布