|
2#
楼主 |
发表于 2005-7-8 11:57:02
|
只看该作者
怎么没有人回复一下呀
这个问题我试了很久了,都没解决,请大家帮帮忙。
我看了录制的脚本:
# 产品资料
win_activate ("产品资料");
set_window ("产品资料", 1);
obj_mouse_click ("TToolBar", 24, 14, LEFT);
obj_mouse_click ("ff", 77, 0, LEFT);
obj_type ("ff","15");
obj_mouse_click ("ffff", 42, 7, LEFT);
obj_type ("ffff","15");
obj_mouse_click ("TDBRichEdit", 49, 30, LEFT);
obj_type ("TDBRichEdit","15");
obj_mouse_click ("TToolBar", 113, 16, LEFT);
obj_mouse_drag ("TToolBar", 168, 17, 168, 18, LEFT);
# 模块资料
set_window ("模块资料", 2);
obj_mouse_click ("TToolBar", 23, 21, LEFT);
** obj_type ("TDBEdit_10","15"); ------这里显示的对象名称是TDBEdit_10,可是在个控件中,系统读取的对象名称却是TDBEdit,每录制一次,这里显示的TDBEdit_10+i,为什么会是这样,我哪里设置错了
obj_mouse_click ("TDBEdit_11", 54, 10, LEFT);
** obj_type ("TDBEdit_11","15");
obj_mouse_click ("TDBRichEdit", 52, 49, LEFT);
obj_type ("TDBRichEdit","14<kBackSpace>5");
obj_mouse_drag ("TToolBar", 113, 11, 111, 12, LEFT);
[ Last edited by huishelml on 2005-7-8 at 11:59 ] |
|