Jump to content
Sign in to follow this  

_IEAttach: The requested action with this object has failed.

Recommended Posts

My goal: Interact with an IE Window on a remote machine.

The local machine runs on linux. I have set up the following :

Linux -> SSH into windows machine (with a freeSSHd server) -> run psexec -i my_script (to get access to the desktop GUI)

This works if I only want to create new windows; they appear on the current user's desktop. But when I try to interact with an already existing IE window, I get this:


AutoIt Error


Line 373 (File "C:\Program Files\AutoIt3\Include\IE.au3"):

Local $o_ShellWindows = $o_Shell.Windows()

Local $o_ShellWindows = $o_Shell.Windows()^ ERROR

Error: The requested action with this object has failed.




Share this post

Link to post
Share on other sites

The only COM code being executed are these two lines:

Local $o_Shell = ObjCreate("Shell.Application")
Local $o_ShellWindows = $o_Shell.Windows(); collection of all ShellWindows (IE and File Explorer)

You might want to use _IEErrorHandlerRegister() to see if you get a more detailed error.


Edited by DaleHohm

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post

Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...