WAIT SECONDS=#DOWNLOADCOMPLETE#

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
SVD
Posts: 1
Joined: Fri Dec 07, 2007 11:47 am

WAIT SECONDS=#DOWNLOADCOMPLETE#

Post by SVD » Fri Dec 07, 2007 11:53 am

Hi,

i wrote a litte macro and included

WAIT SECONDS=#DOWNLOADCOMPLETE#

'cos i want the next macro-steps to be run AFTER the DL is completed.

It ran the marco 4 times successfully and the 5th time (and from that time on) an errormessage pops up:

Error# 809: WAIT Parameter must be the time in seconds

You find me confused... Why was it workin 4 times and then stopped?

thx for help

SVD
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Sat Dec 08, 2007 1:33 am

i want the next macro-steps to be run AFTER the DL is completed.
This is the default behavior now. No wait command is required in this case.
juzamjedi
Posts: 17
Joined: Tue Jun 24, 2008 3:19 am

Re: WAIT SECONDS=#DOWNLOADCOMPLETE#

Post by juzamjedi » Tue Jul 22, 2008 10:40 am

Hello Tech Support,

Thank you for your answer here; I know it was confusing to me. It seems like the WIKI is inconsistent with this answer so it might be good to update that document.

http://wiki.imacros.net/WAIT#Examples
einsmite
Posts: 1
Joined: Sun Jul 27, 2008 4:01 am

Re: WAIT SECONDS=#DOWNLOADCOMPLETE#

Post by einsmite » Sun Jul 27, 2008 4:10 am

Tech Support wrote:
i want the next macro-steps to be run AFTER the DL is completed.
This is the default behavior now. No wait command is required in this case.
Hmm. I just installed the plugin for the first time. Without a WAIT command I get the following error:

RuntimeError: element A specified by TXT:Toolbox was not found

With WAIT, it works fine. It doesn't appear to me that it's by default waiting for the page to be completely loaded.

I also tried WAIT SECONDS=#DOWNLOADCOMPLETE# and got the following error:

BadParameter: expected SECONDS=<number>as parameter 1, macro line 6

This really has me scratching my head, as the documentation states this is correct. Anyone know what's going on?

I'm using iMacros 6.0.6.5 on Firefox 3.0.1

Thanks!
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Re: WAIT SECONDS=#DOWNLOADCOMPLETE#

Post by Tech Support » Sun Jul 27, 2008 10:40 pm

#DOWNLOADCOMPLETE# is not support (and not required) in Firefox. I updated the Wiki accordingly.
flhshark
Posts: 1
Joined: Sat Oct 11, 2008 4:21 am

Re:

Post by flhshark » Sat Oct 11, 2008 4:36 am

Tech Support wrote:
i want the next macro-steps to be run AFTER the DL is completed.
This is the default behavior now. No wait command is required in this case.
this is not work.
my code:
TAG POS=1 TYPE=SPAN ATTR=TXT:buy -------after this no any wait(load a iframe)
TAG POS=1 TYPE=INPUT:BUTTON ATTR=VALUE:ok ------error (button ok is not found. load is not complete)

Tech Support wrote:#DOWNLOADCOMPLETE# is not support (and not required) in Firefox. I updated the Wiki accordingly.
wiki is not update. wait is not work, bug? demerit?
i think maybe #DOWNLOADCOMPLETE# is required.

I'm using iMacros 6.0.7.5 on Firefox 3.0.3
alias420
Posts: 2
Joined: Thu Jun 18, 2009 6:19 pm

Re: WAIT SECONDS=#DOWNLOADCOMPLETE#

Post by alias420 » Thu Jun 18, 2009 10:07 pm

This feature needs to be re-added for Firefox, My scripts fail due to it not waiting for the download to finish if I add a wait time in manually in seconds the scripts work again. Something is flawed in the firefox implementation.
Sinael
Posts: 1
Joined: Mon Oct 19, 2009 6:40 am

Re: WAIT SECONDS=#DOWNLOADCOMPLETE#

Post by Sinael » Mon Oct 19, 2009 9:01 am

This feature SHOULD be enabled in Firefox. Definetely. I dont see the reason why this one was removed.
2io
Posts: 1
Joined: Tue Oct 20, 2009 12:08 pm

Re: WAIT SECONDS=#DOWNLOADCOMPLETE#

Post by 2io » Tue Oct 20, 2009 12:25 pm

The feature is working for me, I am using Mozilla Firefox Portable 3.0.10 and the add-on of iMacros 6.2.1.5 (of-course there is a newer version available).

So, the command

Code: Select all

WAIT SECONDS=#DOWNLOADCOMPLETE#
isn't working, and gives an error message (like described above by others),

but the folowing code works perfect for me, waiting for download to complete:

Code: Select all

ONDOWNLOAD FOLDER="{{!VAR1}}" FILE=* WAIT=YES
TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:dlf ATTR=SRC:http://rs*.rapidshare.com/img*/download_file.jpg
' I saw that next command will wait for download to complete
WAIT SECONDS=1
the whole code looks something like this:

Code: Select all

'VERSION BUILD=6210326 RECORDER=FX
TAB T=1
WAIT SECONDS=1
URL GOTO=http://www.filecrop.com/search.php?w=2009+dialogys&pos=1&opt_t=1&opt_d=0&order=score&mod=dec&size_i=&size_f=&c=100
TAG POS=1 TYPE=A ATTR=TXT:{{myfile}}
TAG POS=1 TYPE=A ATTR=TXT:http://rapidshare.com/files/*/Dialogys_3.72r.part*.rar
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:ff ATTR=VALUE:Free<SP>user
' We should wait another 100seconds
WAIT SECONDS=101
set !VAR1 C:\Dokumente<SP>und<SP>Einstellungen\p3ds\Eigene<SP>Dateien\IOJ\
add !VAR1 Manuale<SP>auto\Manuale<SP>Renault\Dialogys<SP>3.72r\

ONDOWNLOAD FOLDER="{{!VAR1}}" FILE=* WAIT=YES
TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:dlf ATTR=SRC:http://rs*.rapidshare.com/img*/download_file.jpg
' I saw that next command will wait for download to complete
WAIT SECONDS=1

' folowing command isn't required
'ONDOWNLOAD FOLDER="{{!VAR1}}" FILE=* WAIT=YES
' folowing command isn't required
'WAIT SECONDS=1
' we will close the tab now
TAB CLOSE
' wait until download is completed
' next command doesn't work in Firefox
'WAIT SECONDS=#DOWNLOADCOMPLETE#
' so we will use this one... 40min = 2400sec
' later edit: folowing command not anymore necessary
'WAIT SECONDS=2400
' and then wait the Rapid Share waiting time of 15min = 900sec
WAIT SECONDS=900
and all this code is repeated using this javascript:

Code: Select all

//imacros-js:showsteps no

var i, j, s;

for (j = 17; j < 60; j++) {
	s = "Dialogys_3.72r.part" + j + ".rar"
//	iimDisplay ("Current to download : " + s);
	iimSet ("myfile", s)
// We will create a new TAB and that will be the active tab.
//	javascript:void(window.open("url"))
	gBrowser.selectedTab = gBrowser.addTab("");
	i = iimPlay("#Current.iim");
}
Best regards,
Ionut

PS:
Thank you very much for this software !
And for providing detailed Tech Support :!:
Post Reply