IEDoDownload

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
[email protected]
Junior Coder
Posts: 25
Joined: Wed Jul 20, 2011 3:07 pm

IEDoDownload

Post by [email protected] » Fri Jul 13, 2018 7:59 pm

In the following section of code, execution stops at the IEDoDownload line. The download occurs and completes, but execution never proceeds. Any thoughts?

Label>GotIt
Position>timeago">,thisItem,1,pos,FALSE
MidStr>thisItem,{%pos%+9},10,StDate
GetDate>Today
DateDiff>Today,StDate,D,DD
if>DD>1
TimeStamp>%SCRIPT_DIR%\nightly.log,Nightly Snapshot has not completed.
MDL>not complete -- %Today%<>%StDate%
Exit>0
endif
IEClickTag>IE[0],,,A,INDEX,%idx%,ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
IEDoDownload>https://mysite.com/admin/backups
IENavigate>%IE[0]%,https://mysite.com/logout,IEres
IEWaitDocumentComplete>%IE[0]%,IEres
GetNewestFile>%SCRIPT_dir%,inFile
IEQuit>IE[0],IEres

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

Re: IEDoDownload

Post by Marcus Tettmar » Tue Jul 17, 2018 7:33 am

Which version of Windows and IE is this?

Have you tried just:

Code: Select all

IEDoDownload>mysite.com
Does this simple script work for you:

Code: Select all

IECreate>IE[0]
IENavigate>%IE[0]%,www.clipmagic.com,ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
IEClickTag>%IE[0]%,{""},{""},{"IMG"},{"INDEX"},{"6"},ie_res
IEDoDownload>clipmagic.com
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

[email protected]
Junior Coder
Posts: 25
Joined: Wed Jul 20, 2011 3:07 pm

Re: IEDoDownload

Post by [email protected] » Tue Jul 17, 2018 5:50 pm

Yes, the sample code works.
BTW, I created a not so pretty work around.

IEClickTag>IE[0],,,A,INDEX,%idx%,ie_res
IEWaitDocumentComplete>%IE[0]%,ie_res
IEGetAllText>IE[0],2,strText
IEWaitDocumentComplete>%IE[0]%,ie_res
Wait>5
SetFocus>snapshots - Internet Explorer*
wait>3
Press ALT
Send>s
Release ALT
Wait>10
Let>Ext=.partial
Let>wt=1800
While>Ext=.partial
GetNewestFile>%inDirMS%\*.*,inFile
ExtractFileName>inFile,strFileName,1
ExtractFileExt>inFile,Ext
if>Ext=.partial
wait>wt
let>wt=wt/2
endif
EndWhile

[email protected]
Junior Coder
Posts: 25
Joined: Wed Jul 20, 2011 3:07 pm

Re: IEDoDownload

Post by [email protected] » Tue Jul 17, 2018 6:31 pm

Sorry, I did not answer all the questions:
Windows 10 Pro (10.0.17134 Build 17134)
IE 11 (11.112.17134.0)

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

Re: IEDoDownload

Post by Marcus Tettmar » Tue Jul 24, 2018 10:05 am

Glad you have a workaround.

If the sample code is working for you but it's not working for your site that tells me there is something different about what your site is doing. I'd need access to it in order to find out what that is and what we can do about it. Are you able to give me access (privately)? If so can you email support with details.
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