Macro recorded a download, playback is different

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
alexhatcher
Newbie
Posts: 4
Joined: Fri Feb 20, 2015 3:47 pm

Macro recorded a download, playback is different

Post by alexhatcher » Fri Feb 20, 2015 4:00 pm

Teaching myself the WebRecorder

got this far with a script.

// Generated by MacroScript WebRecorder 4.02
// Recorded on Thursday, February 19, 2015, at 04:48 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
IEOnDownload>1,C:\day1,ie_res

//Set timeout for ClickTag and FormFill to 10 seconds, increase if pages load more slowly
IESetTimeout>10,ie_res

IECreate>IE[0]

IENavigate>%IE[0]%,http://www.wdc.com/en/,ie_res

IEWaitDocumentComplete>%IE[0]%,ie_res

IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"WD TV"},ie_res

IEWaitDocumentComplete>%IE[0]%,ie_res

IEClickTag>%IE[0]%,{""},{""},{"LI"},{"CLASSNAME"},{"tab selected"},ie_res

IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Support and Downloads"},ie_res

IEWaitDocumentComplete>%IE[0]%,ie_res

IEClickTag>%IE[0]%,{""},{""},{"A"},{"TEXT"},{"Current Firmware - 1.02.17 (12/2014)"},ie_res

IEWaitDocumentComplete>%IE[0]%,ie_res

IEClickTag>%IE[0]%,{""},{""},{"IMG"},{"INDEX"},{"9"},ie_res

IEWaitNew>0,IE[1]

Let>downloaded_filename=wdtv_1.02.17.zip
Let>downloaded_filesize=167431587
IEWaitFileDownload>wdtv_1.02.17.zip,ie_res
IEQuit>%IE[1]%,ie_res


Label>end_script


when I run it, it gets to the download page and IE 10, shows me a popup:

(text version of a popup)
What do you want to do with wdtv_1.02.17.zip
Open
Save
Save As
(text version of a popup)

and the macro waits. I tried reregistering DownloadManager.dll.

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

Re: Macro recorded a download, playback is different

Post by Marcus Tettmar » Mon Feb 23, 2015 9:22 am

This would mean that the WebRecorder download manager is not installed or registered properly.

This line should enable it:

IEOnDownload>1,C:\day1,ie_res

Can you try reinstalling Macro Scheduler?

I see you have tried re-registering DownloadManager.dll.

But if IE is still presenting the default IE download box then DownloadManager is not registered or is being blocked.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

alexhatcher
Newbie
Posts: 4
Joined: Fri Feb 20, 2015 3:47 pm

Re: Macro recorded a download, playback is different

Post by alexhatcher » Mon Feb 23, 2015 7:18 pm

Ive reinstalled it.

still same behavior.

tried registering the dll with 32bit and 64bit regedt32, no difference.

Its IE 10 that im using.

If i click "save" on the dialog popup, it closed that and the downloadmnager pulls the file down.

however, it never 'exits' the macro.

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

Re: Macro recorded a download, playback is different

Post by Marcus Tettmar » Tue Feb 24, 2015 8:55 am

What security settings do you have in IE? What are the settings for file downloads?
Do you have pop up blocker enabled?
Do you have an antivirus tool installed which could be blocking WR's download manager?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

alexhatcher
Newbie
Posts: 4
Joined: Fri Feb 20, 2015 3:47 pm

Re: Macro recorded a download, playback is different

Post by alexhatcher » Tue Feb 24, 2015 2:21 pm

What security settings do you have in IE? What are the settings for file downloads?
Do you have pop up blocker enabled?
Do you have an antivirus tool installed which could be blocking WR's download manager?

Hi,

1. could you just provide what you WANT the settings to be? I see many others posting about download issues, do you have a doc or FAQ for setting up the browser for downloads?

2. popup blocker was set to disabled.

3. I have no control over Antivirus at my corporation. When I hit 'save' it closes the popup and then runs your download manager to finish.

it never exits the macro afterwards, but one thing at a time.

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

Re: Macro recorded a download, playback is different

Post by Marcus Tettmar » Tue Feb 24, 2015 2:42 pm

I'll be honest - I don't know. I'm working on a process of elimination and we need to try stuff. I would expect it to work with default settings but there are so many variables it's always possible that some security setting is blocking it. I don't know. Is everything bog standard in your setup?

One possibility is your AV tool blocking it. If you have no control over it then we can't test that.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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