|
5#
楼主 |
发表于 2004-10-27 13:40:51
|
只看该作者
#Channel setup(DTT) (Page)
set_window("Channel setup(DTT)(page)",7)
edit_set("Frequency Start:","527250");
list_select_item("BandWidth:","6");#Item Number 1;
#configuration
win_mouse_click("Configration",376,478);
set_window("Configration",0);
button_press("应用(A)");
#channel Setup(DTT) (page)
set_window("Channel setup(DTT)(page)",20);
button_press("Scan");
(以上是在带宽为6时进行扫描的录制脚本,下面我加了一个文本检查点)
#Scan by Frequency
win_get_text("Scan by Frequency",wing_analy,19,193,79,218);#Locking...
(下面再录制带宽为8时脚本)
#configration
set_window("configration",3);
tab_select_item("tab","Channel setup(DTT)");#Item Number 0;
#Channel setup(DTT) (Page)
set_window("Channel setup(DTT)(page)",3);
list_select_item("BandWidth:","8");#Item Number 3;
#configuration
set_window("Configration",1);
button_press("应用(A)");
#channel Setup(DTT) (page)
set_window("Channel setup(DTT)(page)",1);
button_press("Scan");
(在此加入一同步点)
set_window("Scan by Frequency",1);
obj_wait_bitmap("Ananlying...(static)","img5",1);
(下面我又加入一文本检查点)
win_get_text("Scan by Frequency",right_analy,26,194,84,217);#Analying...
(下面是我自己写的一段if句语,不过得不到想要的结果)
if(BandWidth==8)and(right_analy==Analying...)
tl_stup("Scan",0,"Frequency is OK");
else
tl_stup("Scan",1,"Frequency is error")
if(BandWidth==6)and(wing_analy==Locking...)
tl_stup("Scan",0,"Frequency is OK")
else
tl_stup("Scan",1,"Frequency is error")
以上是我录制的脚本,请各位帮忙看看,如果要实现我前面所说那个功能应该怎么修改!!! |
|