|
我想实现每次循环时输入不同的 Name, 所以我定义了一个数组,然后调用该数组里的值,可提示语法错误? 红色部分.
for (i=0;i<2;i++)
{
set_window ("Flight Reservation", 21);
obj_type ("MSMaskWndClass","080106");
list_select_item ("Fly From:", "Sydney"); # Item Number 0;
list_select_item ("Fly To:", "Frankfurt"); # Item Number 0;
obj_mouse_click ("FLIGHT");
# Flights Table
set_window ("Flights Table", 4);
list_select_item ("Flight", "#1"); # Item Number 1;
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 14);
public p[]={"zhang","wang","li"}
obj_type ("Name:", p);
edit_set("Tickets:", "3");
report_msg("lihai, you will be successful in the future, come on")
button_press ("Insert Order");
obj_check_gui("Insert Order", "list2.ckl", "gui2", 1);
set_window ("Flight Reservation", 18);
button_set("First", ON);
button_press("Update Order");
wait(8);
set_window ("Flight Reservation", 5);
menu_select_item ("File;New Order");
} |
|