|
下面是我录制的一小段脚本,每次回放到
obj_get_text("TPanel_0", text, 213, 128, 276, 150); # ------->
button_press ("TPanel_0");
obj_check_gui("TPanel_0", "list4.ckl", "gui4", 1);
中的 button_press ("TPanel_0");
它根本就不做按下的操作,所以列表中选中的数据都没取到,用了各种办法都不行,请高手指教一下,帮帮忙呀,晕死了
界面图片在附件中上传.
# 数据实时采集_0
set_window ("数据实时采集_0", 3);
obj_mouse_click ("TToolBar", 8, 11, LEFT);
# TFrmWiz
set_window ("TFrmWiz", 1);
button_press ("下一步 >");
set_window ("TFrmWiz", 2);
list_select_item ("TComboBox_0", "cims77"); # Item Number 5;
edit_set ("TEdit_3", "cims");
button_press ("测试连接");
# 提示
set_window ("提示", 3);
button_press ("确定");
# TFrmWiz
set_window ("TFrmWiz", 2);
button_press ("下一步 >");
# 选择目的
# 您要将数据复制到何处?可将数据复制到下列目的之一。
obj_get_text("TPanel_3", text);
# set_window ("TFrmWiz", 3);
list_select_item ("TComboBox_0", "SyBase local"); # Item Number 1;
button_press ("测试连接");
# 提示
set_window ("提示", 1);
button_press ("确定");
# TFrmWiz
set_window ("TFrmWiz", 4);
button_press ("下一步 >");
list_select_item ("TListBox_0", "CIMS.JT_TCP_CPRB"); # Item Number 1164;
obj_get_text("TPanel_0", text, 213, 128, 276, 150); # ------->
button_press ("TPanel_0");
obj_check_gui("TPanel_0", "list4.ckl", "gui4", 1);
button_press ("TPanel_3");
click_on_text
button_press ("下一步 >");
win_activate ("TFrmWiz");
button_press ("TPanel_0");
button_press ("下一步 >");
button_set ("(否)不需要设置对应", ON);
button_press ("下一步 >");
button_press ("完成"); |
|