|
Dim loginwin,child,cText
Set loginwin=description.Create()
loginwin( "regexpwndtitle").value="Form1"
Set child=desktop.ChildObjects (loginwin)
For i=1 to child.count
child(i-1).close
Next
Window("regexpwndtitle:=工程1").WinListView("nativeclass:=SysListView32").Activate "工程1.exe"
For i=0 to 15
cText="Text1("&i&")"
VbWindow("regexpwndtitle:=Form1").VbEdit("nativeclass:=ThunderRT6TextBox","vbname:="&cText).Set "testing"
'VbWindow("Form1").VbEdit(cText).Set "testing"
next
VbWindow("regexpwndtitle:=Form1").VbEdit("nativeclass:=ThunderRT6TextBox","vbname:="&cText).Set "testing"这一句要怎么修改才正确啊,如果对象存储库有属性则运行VbWindow("Form1").VbEdit(cText).Set "testing"正确.能不能把VbEdit("nativeclass:=ThunderRT6TextBox","vbname:="&cText)分开写呀 |
|