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
IEDoDownload
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: IEDoDownload
Which version of Windows and IE is this?
Have you tried just:
Does this simple script work for you:
Have you tried just:
Code: Select all
IEDoDownload>mysite.com
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Junior Coder
- Posts: 25
- Joined: Wed Jul 20, 2011 3:07 pm
Re: IEDoDownload
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
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
-
- Junior Coder
- Posts: 25
- Joined: Wed Jul 20, 2011 3:07 pm
Re: IEDoDownload
Sorry, I did not answer all the questions:
Windows 10 Pro (10.0.17134 Build 17134)
IE 11 (11.112.17134.0)
Windows 10 Pro (10.0.17134 Build 17134)
IE 11 (11.112.17134.0)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: IEDoDownload
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.
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?