//自动登录 t = text("立即购买").findOne(3000); if( t ){ console.show(); console.setPosition( 10, device.height/6 ); var w1 = t.bounds().centerX(); var h1 = t.bounds().centerY(); i = 0; while( i<10000 ){ i++; click(w1, h1); sleep(1900); } }else{ alert("未找到 购买按钮"); }