我很难隐藏 _IEAction($oIE_Input, "click")
的新窗口创建。编码:
$oIE = _IECreate("mypage")
Sleep(20000)
$oIE_Input= _IEGetObjById($oIE, "the button")
_IEAction($oIE_Input, "click")
Sleep(20000)
_IEQuit($oIE)
当它按下按钮时,Internet Explorer 会打开一个新的可见窗口。如何避免或隐藏打开新窗口?
最佳答案
也许您可以在后台启动整个 IE session 。看看 _IECreate 参数。
浏览器窗口被隐藏
$sUrl [optional] specifies the Url to navigate to upon creation
$iTryAttach [optional] specifies whether to try to attach to an existing window
0 = (Default) do not try to attach
1 = Try to attach to an existing window
$iVisible [optional] specifies whether the browser window will be visible
0 = Browser Window is hidden
1 = (Default) Browser Window is visible
$iWait [optional] specifies whether to wait for page to load before returning
0 = Return immediately, not waiting for page to load
1 = (Default) Wait for page load to complete before returning
$iTakeFocus [optional] specifies whether to bring the attached window to focus
0 = Do not bring window into focus
1 = (Default) bring window into focus
关于internet-explorer - 使用 IEAction 避免可见窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43076504/