我使用ControlClick在瀏覽器中單擊繼續按鈕,但是當窗口隱藏時什麼都沒有發生(沒有隱藏的窗口,所有的工作都像一個魅力)。這個繼續按鈕應該調用一個activeX元素。AutoIt ControlClick不能用隱藏窗口工作
$ie = _IECreate($Url, 0, 0)
$next = _IEGetObjById($ie, "BTNPOSTAUTH")
$iScreenX = _IEPropertyGet($next, "screenx")
$oiScreenY = _IEPropertyGet($next, "screeny")
$iBrowserX = _IEPropertyGet($next, "browserx")
$iBrowserY = _IEPropertyGet($next, "browsery")
$iWidth = _IEPropertyGet($next, "width")
$iHeight = _IEPropertyGet($next, "height")
$click = ControlClick(_IEPropertyGet($ie, "hwnd"), "", "", "left", 1, $iBrowserX+$iWidth - 10, $iBrowserY+$iHeight/2)
P.S.以前的controlClick爲調用上傳窗口工作正常。
您試圖推送的按鈕的控件ID是什麼? –