如何解决操作不匹配的问题!
当程序运行到红色语句时提示: operation is not appropriate for this wibget class , 那么不用这个命令还有其他的命令可以实现该功能吗?Thank you !set_window ("Flight Reservation");
edit_set_insert_pos ("Date of Flight:(static)", 0, 0);
type ("120106");
#Type in a value in the Fly From: box
list_select_item ("Fly From:", "Portland");
#Type in a value in the Fly To: box
list_select_item ("Fly To:", "Denver");
#Check that the Flights button is enabled
button_get_state ("FLIGHT", value);
if (value != ON)
report_msg ("The Flights button was successfully enabled");
else
report_msg ("Flights button was not enabled. Check that values for Fly From and Fly To are valid"); 是不是由于static text 做为logic name 引起的 第一个你试下 edit_set_insert_pos ("Date of Flight:", 0, 0);
^-^ 以上方法还是不可以啊, 怎么办吗 ? 编辑框直接用edit_set输入就可以了 对呀,估计楼主自己再写教本吧。
楼上的办法最简单 了。。
非常感谢
好的,谢谢, 以后会常向大家请教.我在锻炼自己手写脚本, 这样一来可以更深刻的了解掌握 命令.
页:
[1]