rednimer Posted December 5, 2006 Share Posted December 5, 2006 Im very new at autoit, or any type of scripting for that matter. What im trying to do seems very simple. I need to get a list of url's from a website, which are in a javascript list. So when I go to the site, i have to click on the link to upen the URL, a new window pops up, and I need to take that URL from the browser, and copy/paste it to word or something similar. I can get the keystrokes recorded so it click the link, but when the new window opens I cant get it to click the web address. It seems like i need (_IEPropertyGet($oIE, "locationurl") in the script, but i dont know how to incorporate it, and to get it to paste into a document. And then to have it loop a set amount of times. Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted December 5, 2006 Moderators Share Posted December 5, 2006 I need to get a list of url's from a website, which are in a javascript list.Can you provide a link or source for the page containing this list of URL's? So when I go to the site, i have to click on the link to upen the URL, a new window pops up, and I need to take that URL from the browser, and copy/paste it to word or something similar.It seems to me that it would be easier to retrieve the HREF Property of the link and navigate to it manually. In doing this it would eliminate the need to attach to the new browser window. It seems like i need (_IEPropertyGet($oIE, "locationurl") in the script, but i dont know how to incorporate it, and to get it to paste into a document.As for pasting it into a document I would suggest taking a look at my MS Word Automation Library (see my signature for the link). Link to comment Share on other sites More sharing options...
rednimer Posted December 5, 2006 Author Share Posted December 5, 2006 thanks for the extra quick response. There is probably a better way to it but I was just going to do a crl+v to paste the text.Here is the site im trying to get links from http://proxy.org Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted December 6, 2006 Moderators Share Posted December 6, 2006 I'm still not exactly sure what you are trying to do, but here is a script that will hopefully give you some ideas. #include <IE.au3> $sVisitURL = "www.autoitscript.com" $sURL = "http://proxy.org/" $oIE = _IECreate($sURL) $oForm = _IEFormGetObjByName($oIE, "prf") $oInput = _IEFormElementGetObjByName($oForm, "url") $oSelect = _IEFormElementGetObjByName($oForm, "proxy") _IEFormElementSetValue($oInput, $sVisitURL) $oItems = $oSelect.Options For $oItem In $oItems ConsoleWrite($oItem.value & @CR) Next 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