var Advertisements = {};
Advertisements.main = function () {
var x1 = random(220, 800) * 1;
toastLog("x1=" + x1);
var y1 = random(550, 950) * 1;
toastLog("y1=" + y1);
var x2 = x1 + random(1, 10) * 1;
toastLog("x2=" + x2);
var y2 = y1 + random(1, 10) * 1;
toastLog("y2=" + y2);
var x3 = random(555, 575) * 1;
toastLog("x3=" + x3);
var y3 = random(650, 850) * 1;
toastLog("y3=" + y3);
var x4 = x3 + random(1, 10) * 1;
toastLog("x4=" + x4);
var y4 = y3 + random(1, 10) * 1;
toastLog("y4=" + y4);
var c = random(1, 10);
if(c = 1 || c ==3 || c == 5 || c == 7 || c == 9 ){
toastLog("点击小范围")
sleep(3000);
click(x1, y1);
click(x2, y2);}
else{
toastLog("点击大范围")
sleep(3000);
click(x3, y3);
click(x4, y4);
}
}