|
9#
楼主 |
发表于 2005-11-16 16:54:36
|
只看该作者
终于得到解决了,不过还是参考TSL中的写法,对listbox写了一个函数就可以实现了,感谢大家的帮助哦:)
具体如下:#主要抓取listbox中的值
public function show_topic(in win, in controllist,in str)
{
auto text,text1,rc,arr[];
# Search for the topic string within the object.
# If not found, scroll down to end of document.
set_window (win, 1);
obj_mouse_click (controllist, 1, 1, LEFT);
type ("<kCtrl_L-kHome_E>");
type("<kReturn>");
while(rc=obj_click_on_text(controllist,str,TRUE,LEFT))
{
type ("<kDown_E>");
obj_get_text(controllist, text);
if(text==text1)
return E_GENERAL_ERROR;
text1=text;
}
} |
|