快乐心情 2008-4-29 19:29
winrunner obj_check_bitmap 問題
[color=#000000][size=3][font=SimSun]我是初学者,请大家多多指教,想询问[/font][color=black][font=SimSun]捉取到图像[/font][/color][/size][/color][size=3][color=black]([/color][color=black][font=SimSun]如下方语法[/font][/color][color=black])[/color][color=black][font=SimSun],接着我该如何判断它的「执行结果」,如果「执行结果」是「[/font][/color][color=black]ok[/color][color=black][font=SimSun]」就执行[/font][/color][color=black]a[/color][color=black][font=SimSun],如果「执行结果」是「[/font][/color][color=black]mismath[/color][color=black][font=SimSun]」就执行[/font][/color][color=black]b[/color][color=black][font=SimSun]?[/font][/color][/size]
[size=10pt]obj_check_bitmap[/size][size=10pt]([/size][size=10pt]"Internet Explorer_Server"[/size][size=10pt], [/size][size=10pt]"Img7"[/size][size=10pt], [/size][size=10pt]1[/size][size=10pt], [/size][size=10pt]326[/size][size=10pt], [/size][size=10pt]307[/size][size=10pt], [/size][size=10pt]118[/size][size=10pt], [/size][size=10pt]33[/size][size=10pt]); [/size]
lqr 2008-5-6 19:32
用win_exsit("图象名")
if(win_exsit("图象名" == E_ok)
{
statment;
}
else
{
statment;
}
不记得是不是用win_exsit()函数,最好看下tsl online reference
win_exsit("图象名")是检查窗口的,图象的应该也有,看下reference!
在家上网,没装wr,明天去公司看看
lqr 2008-5-7 19:24
看了下reference
楼主的要求可以这样实现
if(obj_check_bitmap("Internet Explorer_Server", "Img7", 1, 326, 307, 118, 33)==E_ok)
{
...............
}
else
{
..........
}
多看下reference,收获还是多多啊!