|
4#
楼主 |
发表于 2010-8-13 07:33:13
|
只看该作者
回复 3# 的帖子
我用了正则表达式对i进行匹配,随机选取数字
SystemUtil.CloseProcessByName"calc.exe" '
SystemUtil.Run "C:\WINDOWS\system32\calc.exe","","C:\WINDOWS\system32","open"
Dim i
i = "[0-9]*"
Window("regexpwndtitle:=计算器").WinButton("regexpwndtitle:="&i).click '修改这里的i 值就可以按对应的按钮
可是他报错"The "[ WinButton ]" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object. |
|