Is there probably a way to click ie popup button and hide or invisible popup button in the same time?
I try to use WinSetState @SW_hide ,
the result is ie crashing or no response because button hide and the next click command won't work...
$oForm=_IEFormGetObjByName($oIE,"form1")
$obutton=_IEFormElementGetObjByName($oForm,"btn_OK")
$hWnd = _IEPropertyGet($oIE, "hwnd")
_IEAction($obutton,"focus")
ControlSend($hWnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}")
WinWait("", "確定存檔嗎?")
WinSetState("","確定存檔嗎?",@SW_Hide)
ControlClick("", "確定存檔嗎?", "[CLASS:Button; TEXT:確定; Instance:1;]")