"auto";
setScreenMetrics(720, 1440);
sleep(3000); 
click(464, 1200);
sleep(5000); 
for(var i=1;i<=2;i=i+1){ 
/第一次进入/
"auto";
click(435, 1195);
sleep(3000); 
click(435, 1195);
sleep(3000);
gesture(1000, [40, 700], [40, 200])
sleep(3000);
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
click(100, 900);/关闭小窗口/  
sleep(3000);
/完成4次向下/
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000);
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000);
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000); 
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000);
/完成4次向上
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
/完成4次向下/
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000);
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000);
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000); 
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000);
/完成4次向上/
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
"auto";
gesture(1000, [40, 700], [40, 200])
sleep(3000);
click(100, 900);/关闭直播内小窗口
/完成4次向下/
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000);
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000);
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000); 
"auto";
gesture(1000, [200, 400], [200, 1000])
sleep(3000);
/完成4次向上
sleep(3000);
}/循环完成/
"auto";
var appName =
openAppSetting(getPackageName(appName));
"auto";
sleep(3000);
click(514,419);
sleep(3000);
click(527,772);
sleep(3000); 
 launchApp("手机淘宝");
sleep(20000); 
/完成/