Steveiwonder Posted February 18, 2010 Share Posted February 18, 2010 (edited) Hey All, I seem to have an issue with _IEAttach. Here is the code. Local $winTitle1 = "Interface Search - " ; name of page Local $winTitle2 = "Interface Details - "; name of page If WinExists($winTitle1) Then $Hwnd = WinGetHandle($winTitle1) $oIE = _IEAttach($hwnd, "HWND") ; This line of code causes the error ElseIf WinExists($winTitle2) Then $Hwnd = WinGetHandle($winTitle2) $oIE = _IEAttach($hwnd, "HWND") Else $oIE = _IECreate($LoginURL, 0, 1) EndIf This is the error I'm getting. >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "E:\AutoIT\Work Scripts\Haystacks\HayStackst.au3" C:\Program Files\AutoIt3\Include\ie.au3 (2674) : ==> The requested action with this object has failed.: Return SetError($_IEStatus_Success, 0, HWnd($o_object.HWnd())) Return SetError($_IEStatus_Success, 0, HWnd($o_object.HWnd()^ ERROR >Exit code: 1 Time: 0.987 Any help is appreciated. Thanks Edited February 18, 2010 by Steveiwonder They call me MrRegExpMan Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now