点击#32770窗口控件问题。(已解决)
本帖最后由 叶子2019 于 2021-5-12 10:32 编辑想要点击第二个按钮,这样的代码有什么问题?总是不成功?
$winArr = WinList ("")
For $i = 1 To $winArr
$oText = ControlGetText ($winArr[$i], "", "")
If StringInStr($oText,"请选择证券") Then;判断窗口是否存在
$Bt2 = ControlGetHandle("", "", "")
ControlClick("", "", $Bt2)
ExitLoop
EndIf
Next
$winArr = WinList("")
For $i = 1 To $winArr
$sText = ControlGetText($winArr[$i], "", "")
If StringInStr($sText, "请选择证券") Then;判断窗口是否存在
;~ $Bt2 = ControlGetHandle("", "", "")
ControlClick($winArr[$i], "", "Button2")
ExitLoop
EndIf
Next
页:
[1]