iMacro don't work, plz help

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
triplex090
Posts: 9
Joined: Thu Jun 16, 2011 2:14 pm

iMacro don't work, plz help

Post by triplex090 » Thu Jul 07, 2011 9:57 am

this is my code

CLEAR
SET !ERRORIGNORE YES
SET !TIMEOUT 5
URL GOTO=http://abc.com
WAIT SECONDS=9

SET !ERRORIGNORE YES
SET !TIMEOUT 5
URL GOTO=http://xyz.com
WAIT SECONDS=9
CLEAR

and sometimes I see this error :
Image

Just after "WAIT SECONDS=9" it doesn't run and stand (freeze, hang ...) like that (red bar with no number inside) ! (Just Sometimes, not everytimes)
AND I MUST TO CLICK "STOP" AND THEN CLICK "PLAY(LOOP)" AGAIN ! IT'S WASTING MY TIME TO FIX IT !
How can i fix it ? :(
I HAVE UPDATE TO "2011-07-01 iMacro V7.3.0.0" BUT IT STILL LIKE THAT !
Last edited by triplex090 on Fri Jul 08, 2011 8:37 am, edited 1 time in total.
triplex090
Posts: 9
Joined: Thu Jun 16, 2011 2:14 pm

Re: iMacro don't work, plz help

Post by triplex090 » Fri Jul 08, 2011 8:37 am

please help me ! :|
Tom, Tech Support
Posts: 3527
Joined: Mon May 31, 2010 4:59 pm

Re: iMacro don't work, plz help

Post by Tom, Tech Support » Mon Jul 18, 2011 2:43 pm

Hello triplex090,

I think this is website specific, because I ran the following macro in a loop of 100 times and never encountered this situation.

Code: Select all

SET !ERRORIGNORE YES
SET !TIMEOUT 5
URL GOTO=http://www.iopus.com
WAIT SECONDS=9
CLEAR
What you should consider doing though is calling your macro with the built-in Javascript scripting interface. That way you can specify a timeout value to the iimPlay call, and then if the macro times out you can simply restart it again. Here's a brief example:

Code: Select all

var macro;
macro =  "CODE:";
macro +=  "CLEAR" + "\n"; 
macro +=  "SET !ERRORIGNORE YES" + "\n"; 
macro +=  "SET !TIMEOUT 5" + "\n"; 
macro +=  "URL GOTO=http://abc.com" + "\n"; 
macro +=  "WAIT SECONDS=9" + "\n"; 
macro +=  "SET !ERRORIGNORE YES" + "\n"; 
macro +=  "SET !TIMEOUT 5" + "\n"; 
macro +=  "URL GOTO=http://xyz.com" + "\n"; 
macro +=  "WAIT SECONDS=9" + "\n"; 
macro +=  "CLEAR" + "\n"; 

var i;

for (i=1; i <= 30000; i++)
{
	iimPlay(macro, 60)
}
Here the timeout is set to 60 seconds, so if the macro doesn't finish playing after one minute, the iimPlay call returns an error (which is ignored in this case) and your loop will just continue.
Regards,

Tom, iMacros Support
Post Reply