Jump to content

_IEAttach problem on Vista


magus
 Share

Recommended Posts

This script ONLY works on my computer (running 32-bit Vista) if I REMOVE #RequireAdmin...

#include <IE.au3>
#RequireAdmin

ShellExecute("iexplore.exe", "http://www.google.com")
WinWait("Google")

Sleep(1000)

$x = _IEAttach("Google")
_IEQuit($x)
Edited by magus
Link to comment
Share on other sites

What happens if you don't?

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

Link to comment
Share on other sites

What happens if you don't?

If I leave #RequireAdmin in the script, it does not close the IE window. It doesn't give me an error either. So it seems to give $x some kind of object variable, but the IE functions can't seem to do anything with that variable.

PS I've used #RequireAdmin in many scripts using many other IE.au3 functions, and they still work fine. I only have problems with _IEAttach

Link to comment
Share on other sites

If I leave #RequireAdmin in the script, it does not close the IE window. It doesn't give me an error either. So it seems to give $x some kind of object variable, but the IE functions can't seem to do anything with that variable.

PS I've used #RequireAdmin in many scripts using many other IE.au3 functions, and they still work fine. I only have problems with _IEAttach

So if _IEAttach writes nothing to the SciTe console and _IEQuit doesn't either, then both functions think they have been successful.

You need to figure out more about your $x... use ObjName, use _IEPropertyGet to try to figure out what it is. I recently blew away my Vista VM, so I can't easily test.

Dale

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...