I've been unable to figure out why this code is not pulling down some text.
I'm using windows 7 and IE 9. I've setup http://*.asba.com as a trusted site, and confirmed that trusted sites are not in protected mode, and that it is enabled for scripted browsing.
I've confirmed that the DLL for webrecorder is properly installed in the imports directory. And the script does open the internet explorer. However it always errors out when I attempt to extract the tag text. I'm assuming from what is listed below it should be pulling the inner text, but instead I get the following error:
Error In Line: 22 - Error Calling DLL: Possible wrong number or type of parameters? Message: The interface is unknown
I know I must be doing something wrong, but I can't figure it out. Any help would be appreciated.
-OS
Code: Select all
//Set IGNORESPACES to 1 to force script interpreter to ignore spaces.
//If using IGNORESPACES quote strings in {" ... "}
//Let>IGNORESPACES=1
// Generated by MacroScript WebRecorder 3.02
// Recorded on Friday, September 21, 2012, at 12:53 PM
//This toggles off tabbed browsing and stores the old preferences.
RegistryReadKey>HKEY_CURRENT_USER,Software\Microsoft\Internet Explorer\TabbedBrowsing,Enabled,oldTB
RegistryWriteKey>HKEY_CURRENT_USER,Software\Microsoft\Internet Explorer\TabbedBrowsing,Enabled,0
LibLoad>%SCRIPT_DIR%\IEAuto.dll,hIE
// Generated by MacroScript WebRecorder 3.02
// Recorded on Friday, September 21, 2012, at 03:53 PM
//Move the mouse cursor out of harm's way to avoid causing mouseover events to interrupt
MouseMove>0,0
Let>delay=1
//Enable automatic downloads to My Documents dir, modify path if required
IE_OnDownload>1,C:\Users\John\Downloads,ie_res
//Set timeout for ClickTag and FormFill to 10 seconds, increase if pages load more slowly
IE_SetTimeout>30,ie_res
IE_Create>0,IE[0]
IE_Navigate>%IE[0]%,www.asba.com/members/?id=11973861,ie_res
IE_WaitDocumentComplete>%IE[0]%,ie_res
let>TD23_SIZE=99999
//IE_GetTagLength>%IE[0]%,,TD,23,0,TD23_SIZE
IE_ExtractTag>%IE[0]%,,TD,23,0,TD23,ie_res
//Extracted text is in variable: TD23
messagemodal>TD23
//At end of script - set tabbed browsing state back (or not depending on prior setting)
RegistryWriteKey>HKEY_CURRENT_USER,Software\Microsoft\Internet Explorer\TabbedBrowsing,Enabled,oldTB
LibFree>hIE