|
确实可以录制了,不过你看下面的代码obj_开头的,每一个按钮我都要做虚拟吗?谢谢指点!
for(i=0;i<10;i++)
{
# 计算器
set_window ("计算器", 3);
button_press("7");
button_press("*");
obj_mouse_click("4", 18, 10, LEFT);
button_press("=");
obj_mouse_click ("Button_65", 18, 11, LEFT);
obj_mouse_click ("Button_66", 5, 13, LEFT);
button_press("=");
obj_mouse_click ("Button_67", 19, 12, LEFT);
obj_mouse_click ("Button_68", 12, 14, LEFT);
obj_mouse_drag ("Button_69", 16, 14, 16, 13, LEFT);
obj_mouse_click ("Button_70", 15, 14, LEFT);
button_press("=");
# 计算器
set_window ("计算器", 2);
obj_mouse_click ("Button_71", 28, 7, LEFT);
} |
|