Originally posted by 生如火花 at 2005-4-5 14:16:
楼上的说法需要贴出脚本。另外wr对C#支持不好。
这个程序的界面在附件里面,外围的表格是DataGrid控件,里面像性别字段,点击是下拉框,可选择项是" 不定","男","女",我选择的是女,重放时这个下拉框不动(也就是没选择任何项)
脚本:
# 科室维护_1
set_window ("科室维护_1", 1);
obj_mouse_click ("WindowsForms10.Window.8.app3", 30, 236, LEFT);
obj_mouse_click ("新 增(F2)", 44, 11, LEFT);
obj_type ("WindowsForms10.EDIT.app3","144<kReturn>");
obj_type ("WindowsForms10.EDIT.app3_1","xiaomeng<kReturn>");
edit_set ("Edit", "女"); //就这操作每完成
obj_type ("Edit","<kReturn>");
obj_type ("Edit_1","<kReturn>");
obj_type ("WindowsForms10.EDIT.app3_2","<kReturn>");
obj_type ("WindowsForms10.EDIT.app3_3","<kReturn>");
obj_type ("WindowsForms10.EDIT.app3_4","<kReturn>");
obj_type ("Edit_2","<kReturn>");
obj_type ("Edit_3","<kReturn>");
obj_type ("Edit_4","<kReturn>");
obj_type ("Edit_5","<kReturn>");
obj_type ("WindowsForms10.BUTTON.app3","<kReturn>");
obj_type ("WindowsForms10.BUTTON.app3_1","<kReturn>");
obj_type ("WindowsForms10.BUTTON.app3_2","<kReturn>");
obj_type ("WindowsForms10.BUTTON.app3_3","<kReturn>");
obj_type ("0.00","<kReturn>");
obj_type ("WindowsForms10.EDIT.app3_5","<kReturn>");
obj_type ("WindowsForms10.EDIT.app3_6","<kLeft_E>");
obj_type ("WindowsForms10.EDIT.app3_5","1111");
obj_mouse_click ("保 存(F5)", 39, 18, LEFT);
结果提示: line 8 : Edit_set:"Edit" Error: Object is not unique.
line 9: obj_set_focus:"Edit" Error: Object is not unique. |