swipe(device.width / 2, 2000, device.width / 2, 100, 2000);
do{
sleep(1000);//停個1秒 等頁面滑動執行完成
//當前頁面邏輯
}while(scrollForward());
auto();
a=device.width;
b=device.height;
while(true){
c=random(0,1);
sleep("1000");
if(c==0){
swipe(a/2,b/3*1,a/2,b/3*2,3000);
}else{
swipe(a/2,b/3*2,a/2,b/3*1,3000);
}
}
參考這條命令【//用300毫秒的時間,從點100,100划動到點200,200
Swipe 100,100,200,200,300】
這是按鍵精靈app給出的一條參考命令,建議設置大一點的時間,因為按毫秒算的。