|
8#
楼主 |
发表于 2007-3-23 10:51:00
|
只看该作者
已经搞定了,谢谢lsy的耐心指导,我发现
# Flight Reservation
win_activate ("Flight Reservation");
set_window ("Flight Reservation", 2);
edit_set ("Date of Flight:", "11/11/11");
list_get_items_count ("Fly From:",a);
list_get_items_count ("Fly To:", b);
for(i=0;i<a;i++){
for(j=0;j<b;j++){
for(k=0;k<c;k++){
list_select_item ("Fly From:", "#"&i); # Item Number 2;
list_select_item ("Fly To:", "#"&j); # Item Number 1;
obj_mouse_drag ("FLIGHT", 35, 48, 34, 48, LEFT);
set_window ("Flights Table", 0);
list_get_items_count ("Flight", c);
#for(k=0;k<c;k++){
# Flights Table
set_window ("Flights Table", 0);
list_select_item ("Flight", "#"&k); # Item Number 3;
button_press ("OK");
}
}
}
obj_mouse_drag ("FLIGHT", 35, 48, 34, 48, LEFT);
# Flights Table
set_window ("Flights Table", 0);
list_select_item ("Flight", "13540 FRA 10:24 AM LON 11:09 AM SR $167.10"); # Item Number 3;
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 6);
edit_set ("Name:", "terry");
button_set ("Business", ON);
button_press ("Insert Order");
set_window ("Flight Reservation", 7);
obj_mouse_click ("Button", 21, 14, LEFT);
红色的标识载运行第一遍可以识别,到第二遍死活不识别,我重新learn了一下还是不行,就这一句不识别,不知道怎么回事情,用step运行了几次后再次运行发现for语句也不执行了,直接三句for语句执行好之后跳到}下面,不知道怎么回事情sdlkfj2 |
|