download works in 10.3 but not 11

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

download works in 10.3 but not 11

by shaves on Wed Jun 27, 2018 9:21 am

I use the following code in an Excel VBA macro. The code downloads the report in version 10.3 just like I expect it to. However, another user has version 11 and this same code doesn't download the report. Any suggestions would be greatly appreciated. Thanks for the help

IMCode = "CODE:"
IMCode = IMCode + "TAB T=1" + vbNewLine
IMCode = IMCode + "SET !TIMEOUT 60" + vbNewLine
IMCode = IMCode + "TAB CLOSEALLOTHERS" + vbNewLine
IMCode = IMCode + "ONDOWNLOAD FOLDER=C:\Temp\ FILE=DDRpt.txt WAIT=YES" + vbNewLine
IMCode = IMCode + "TAG POS=" & RptList(Z) & " TYPE=A FORM=NAME:reportHistoryForm ATTR=TXT:Text<SP>" + vbNewLine
IMCode = IMCode + "WAIT SECONDS=10" + vbNewLine

These machines have Office 365 (Excel 2016) (32 bit version)
Windows 10
iMacros 11.0.246
shaves
 
Posts: 61
Joined: Tue Apr 29, 2008 11:50 am

Re: download works in 10.3 but not 11

by chivracq on Wed Jun 27, 2018 10:02 am

shaves wrote:I use the following code in an Excel VBA macro. The code downloads the report in version 10.3 just like I expect it to. However, another user has version 11 and this same code doesn't download the report. Any suggestions would be greatly appreciated. Thanks for the help

Code: Select all
IMCode = "CODE:"
IMCode = IMCode + "TAB T=1" + vbNewLine
IMCode = IMCode + "SET !TIMEOUT 60" + vbNewLine
IMCode = IMCode + "TAB CLOSEALLOTHERS" + vbNewLine
IMCode = IMCode + "ONDOWNLOAD FOLDER=C:\Temp\ FILE=DDRpt.txt WAIT=YES" + vbNewLine
IMCode = IMCode + "TAG POS=" & RptList(Z) & " TYPE=A FORM=NAME:reportHistoryForm ATTR=TXT:Text<SP>" + vbNewLine
IMCode = IMCode + "WAIT SECONDS=10" + vbNewLine


These machines have Office 365 (Excel 2016) (32 bit version)
Code: Select all
Windows 10
iMacros 11.0.246

My 2cts as I don't use iMB...:

Looks like several Issues related to 'ONDOWNLOAD' were fixed in iMB v11.1 that got released after v11.0:
Version 11.1, Released March 17, 2016 wrote:
  • Fixed: Download manager downloading HTML source code rather than target file and new DL manager downloading 0 KB file. iMacros now detects whether the download is the result of a POST and falls back to IE's default download manager.
  • Fixed: File appears to download but can't be found on disk.
  • Fixed: New download manager saves file using temporary file name.

... And again later with v11.5:
Version 11.5, Released October 13, 2016 wrote:
  • Fixed: Download not being handled when iMacros browser doesn't have focus.

They could maybe try "playing" with '!USE_DOWNLOADMANAGER' to see if it makes a Difference...

But iMB v11.0 was a bit of a "Temp" Version, which "reached Maturity and Stability" with v11.5, so if they can, your Colleague should update to v11.5, I would think...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 7714
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: download works in 10.3 but not 11

by chivracq on Wed Jun 27, 2018 10:46 am

Hum, stg else your Colleague could try as well, would be to run the Script as pure '.iim' from iMB directly, without the Scripting Interface, in order to check/test if the Download already works... :idea:

Could try as well downloading directly to the Default 'Downloads' Folder (=> without specifying a Path...), and doubling the Backslashes in the Path...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 7714
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: download works in 10.3 but not 11

by shaves on Thu Jun 28, 2018 2:04 pm

Thanks...........I'll try some of those suggestions. The version is controlled by our IT department so getting 11.5 may not be a quick solution. I've had a couple of users get rolled back to 10.3 and it works. So maybe we have to use that until IT releases 11.5. As always, Thanks for the help and quick replies..........
shaves
 
Posts: 61
Joined: Tue Apr 29, 2008 11:50 am

Re: download works in 10.3 but not 11

by chivracq on Fri Jun 29, 2018 4:53 am

shaves wrote:Thanks...........I'll try some of those suggestions. The version is controlled by our IT department so getting 11.5 may not be a quick solution. I've had a couple of users get rolled back to 10.3 and it works. So maybe we have to use that until IT releases 11.5. As always, Thanks for the help and quick replies..........

:wink:

Hum..., "strange" anyway that your IT-Dept "staid" at v11.0, v11.5 was the "stable" Version for the v11.x Line, like v10.3 was indeed the stable Version for the v10.x Line...
(Nice to have the 'EVENT' Mode in v11.5 as well... :wink: )
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 7714
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to Command Line and Scripting Interface

Who is online

Users browsing this forum: No registered users and 6 guests

-->