magus Posted February 21, 2008 Posted February 21, 2008 (edited) 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 February 21, 2008 by magus
DaleHohm Posted February 21, 2008 Posted February 21, 2008 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
magus Posted February 22, 2008 Author Posted February 22, 2008 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
DaleHohm Posted February 22, 2008 Posted February 22, 2008 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 _IEAttachSo 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now