MaoMao Posted November 8, 2011 Posted November 8, 2011 Problem in website, retrieve informationTry the sample in help file. _IEQuite.aus. It did not work.Does anyone know what's wrong with the sample $oMarquee line?#include <IE.au3>$oIE = _IECreate ("http://sourceforge.net", 0, 0); Display the innerText on an element on the page with a name of "sfmarquee"$oMarquee = _IEGetObjByName ($oIE, "sfmarquee")MsgBox(0, "SourceForge Information", $oMarquee.innerText)_IEQuit ($oIE)
LurchMan Posted November 8, 2011 Posted November 8, 2011 There is no object on sourceforge.net called "sfmarquee". Right click on the webpage and choose "view source". You can get the object names from there. Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.
MaoMao Posted November 13, 2011 Author Posted November 13, 2011 Okay. Still got the error for the line $oMarquee.innerTextChanged the source name in the source to "Download".Error: Variable must be of type "Object".#include <IE.au3>$oIE = _IECreate ("http://sourceforge.net", 0, 0); Display the innerText on an element on the page with a name of "Download"$oMarquee = _IEGetObjByName ($oIE, "Download")MsgBox(0, "SourceForge Information", $oMarquee.innerText)_IEQuit ($oIE)
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