dirtymafia Posted June 19, 2006 Share Posted June 19, 2006 Would like to grab url of IE window. Would it be written like this (I'm not sure I understand $o_object) This would grab the url of current window(not created by this script but opened by user) #include "C:\Program Files\AutoIt3\beta\include\ie.au3" $url = '' $ieobj = '' opt("WinTitleMatchMode",2) While 1 $ieobj = WinGetHandle(" -Microsoft Internet Explorer") $url = _IEPropertyGet ($ieobj, "locationurl") if $url <> 0 Then msgbox(0,$url,$url) EndIf WEnd The above does not work properly. I need help. Link to comment Share on other sites More sharing options...
NELyon Posted June 19, 2006 Share Posted June 19, 2006 when you do #include, you don't need the full path if it is in your beta include directory Link to comment Share on other sites More sharing options...
DaleHohm Posted June 19, 2006 Share Posted June 19, 2006 Would like to grab url of IE window. Would it be written like this (I'm not sure I understand $o_object) This would grab the url of current window(not created by this script but opened by user) #include "C:\Program Files\AutoIt3\beta\include\ie.au3" $url = '' $ieobj = '' opt("WinTitleMatchMode",2) While 1 $ieobj = WinGetHandle(" -Microsoft Internet Explorer") $url = _IEPropertyGet ($ieobj, "locationurl") if $url <> 0 Then msgbox(0,$url,$url) EndIf WEnd The above does not work properly. I need help.$o_object is NOT a window handle - it is a COM object (it is a different type of variant in AutoIt). You need to take a look at _IEAttach() I think. 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 More sharing options...
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