IEAuto.DLL has not been initialized

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
davidwms
Junior Coder
Posts: 23
Joined: Wed Aug 26, 2009 6:18 pm
Location: Madison, AL
Contact:

IEAuto.DLL has not been initialized

Post by davidwms » Thu Jun 28, 2012 8:22 pm

After upgrading my MS SQL Server Express 2005 to 2008 (not positive it has anything to do with this problem but it started imediately afterwards), I am having the a problem with my scripts converted for compiling to an exe or already compiled scripts not recognizing the IEAuto.DLL. After loading it I get the error:
IEAuto.DLL has not been initialized – Ensure you are using Macro Scheduler 13.1 or above.

The following script works all except the IE_Quit statement (maybe you can throw some like on that one too).

Code: Select all

LibLoad>%SCRIPT_DIR%\IEAuto.DLL,hIE
//LibLoad>IEAuto.DLL,hIE
IE_Version>0,r
MessageModal>%r%
// shows r = 302
IE_SetTimeout>r,10
IE_Create>IE[0],0
Wait>5
IE_Quit>IE[0],r
// not closing the browser window
Wait>1
MessageModal>%r%
// shows r = 1
LibFree>hIE
But after converting it so it can be made into an exe the following gives me an error each time a LibFunc is called.

Code: Select all


LibLoad>%SCRIPT_DIR%\IEAuto.DLL,hIE
LibFunc>hIE,Version,r,0
MessageModal>%r%
// shows r = 302
LibFunc>hIE,SetTimeout,r,10
LibFunc>hIE,CreateIE,IE[2],0
Wait>2
LibFunc>hIE,QuitIE,IE[2],r
// not closing the browser window
MessageModal>%r%
// shows r = 1
LibFree>hIE
I hope someone can help.
David Williams

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Jun 28, 2012 11:12 pm

LibLoad>%SCRIPT_DIR%\IEAuto.DLL,hIE
I don't know if this is the issue but it seems a likely starting point.

The value of the SCRIPT_DIR variable for a compiled script named C:\user\David\MyPhotoAlbum\MyCompiledScript.exe will be C:\user\David\MyPhotoAlbum.

If the file "MyCompiledScript.exe" uses IEAuto.DLL and is located in C:\user\David\MyPhotoAlbum then there has to be a folder named C:\user\David\MyPhotoAlbum\imports that contains the two files IEAuto.dll and IEAuto.ini.

davidwms
Junior Coder
Posts: 23
Joined: Wed Aug 26, 2009 6:18 pm
Location: Madison, AL
Contact:

Post by davidwms » Fri Jun 29, 2012 2:33 pm

JRL

Thanks for that info. I took out the %SCRIPT_DIR%\ and it did get rid of my error which was my real problem.

The IE_Quit>%IE[0]%,r still does not close the IE web page although LibFunc>hIE,KillIE,r,%IE[2]% does work.

Thanks,
David Williams

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts