IEAuto.dll

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
mr_scruff
Newbie
Posts: 4
Joined: Thu Apr 26, 2007 10:15 am

IEAuto.dll

Post by mr_scruff » Fri Apr 27, 2007 10:07 am

I've just downloaded the trial version of the web recorder and when i've recorded my first script I get the warning message to remember to map the path to the file IEAuto.dll
I've search my pc and I don't have this file anywhere.
Where do I get it from?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Apr 27, 2007 10:19 am

It is installed into the program folder and also the System folder. Therefore you can ignore this warning as the script will work as is. The warning is more relevant for when/if you distribute your generated script to another computer. You'd need to provide both the script and the DLL. Best thing then would be to put them in the same directory and leave off the path info from the LibLoad line.

But for now, on your machine, having installed the trial, ignore the warning. The script will find the dll because it is in your system path.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

mr_scruff
Newbie
Posts: 4
Joined: Thu Apr 26, 2007 10:15 am

problems with web recorder

Post by mr_scruff » Fri Apr 27, 2007 10:25 am

I've successfully created and script that should login to my yahoo web email account and then send an email to my works email account with some test text in the body field and subject field.
It is logging in fine but not entering any text?
This is the script:

// Generated by MacroScript WebRecorder 1.72
// Recorded on Friday, April 27, 2007, at 11:17 AM
LibLoad>C:\Program Files\Macro Scheduler\my samples\IEAuto.dll,hIE
If>hIE=0
MessageModal>Could not load IEAuto.dll, make sure it is in the path or edit the LibLoad line.
Goto>end_script
EndIf

//Move the mouse cursor out of harm's way to avoid causing mouseover events to interrupt
MouseMove>0,0
Let>delay=1

LibFunc>hIE,CreateIE,IE[0],0

LibFunc>hIE,Navigate,r,%IE[0]%,http://www.yahoo.co.uk/
LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"Mail"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,A,TEXT,str:TagValue

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

Let>FrameName={""}
Let>FormName={"login_form"}
Let>FieldName={"login"}
Let>FieldValue={""}
LibFunc>hIE,FormFill,r,%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0

Let>FrameName={""}
Let>FormName={"login_form"}
Let>FieldName={"passwd"}
Let>FieldValue={""}
LibFunc>hIE,FormFill,r,%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0

Let>FrameName={""}
Let>FormName={"login_form"}
Let>FieldName={"login"}
Let>FieldValue={"myusername"}
LibFunc>hIE,FormFill,r,%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0

Let>FrameName={""}
Let>FormName={"login_form"}
Let>FieldName={"passwd"}
Let>FieldValue={"mypassword"}
LibFunc>hIE,FormFill,r,%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0

Let>FrameName={""}
Let>FormName={"login_form"}
Let>TagValue={".save"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"Sign Out"}
LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,A,TEXT,str:TagValue

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFunc>hIE,WaitIE,r,%IE[0]%
Wait>delay

LibFree>hIE
Label>end_script

What am I doing wrong?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Apr 27, 2007 10:29 am

The script is logging in. Then there are lots of waiting for activity, and then it logs out. WebRecorder has been unable to record the part where you enter the mail message. It could be that WebRecorder is not compatible with Yahoo webmail. It's possible that we could still code it manually, just that WebRecorder is unable to detect the objects and events.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

mr_scruff
Newbie
Posts: 4
Joined: Thu Apr 26, 2007 10:15 am

query

Post by mr_scruff » Fri Apr 27, 2007 10:37 am

On the basis that I'm not a great script writer would you advise that your App Navigator program is a better solution to create this task?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Apr 27, 2007 10:46 am

Yes, AppNavigator would make it very easy for a couple of main reasons:

1) It uses image recognition technology so it works above any underlying UI technology - we don't have to script IE's Document Object Model/ActiveX interface. We just make a script which "sees" the screen just like us humans.

2) There is no coding. You can make a routine by grabbing portions of the screen and assigning actions to them.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Fri Apr 27, 2007 1:13 pm

There are also a lot easier ways to send mail than automating the browser interface, see the SMTPSendMail> command. Unfortunately I don't believe you can can use the SMTPSendMail> method with free yahoo, but you can with their mail plus ($20/yr) upgraded account. I have a number of automated email processes running using a yahoo mail plus account.

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