|
录制时出现下面的:当时回放是可以的,当程序(被测程序)重新打开时,就回放不成!修改MSW_ID值用*号,后还是不行!
obj_mouse_click ("WindowsForms10.COMBOBOX.app3_1", 72, 14, LEFT);
obj_mouse_click ("WindowsForms10.COMBOBOX.app3_2", 78, 13, LEFT);
obj_mouse_dbl_click ("WindowsForms10.EDIT.app3", 40, 8, LEFT);
obj_type ("WindowsForms10.EDIT.app3","<kBackSpace>");
obj_type ("WindowsForms10.EDIT.app3","3200");
我 在 用 ,GUI Map configuration 设置以后,代码变成:回放时仍然不行,和上边的情况一样!
list_select_item ("WindowsForms10.COMBOBOX.app3", "0001"); # Item Number 0;
list_select_item ("WindowsForms10.COMBOBOX.app3_1", "L0703"); # Item Number 2;
button_set ("进货", ON);
button_set ("支票", ON);
edit_set ("WindowsForms10.EDIT.app3", "3200");
edit_set ("WindowsForms10.EDIT.app3_1", "10");
那为高手帮帮忙!谢谢! |
|