Imacros Restart On Error
Contents |
2008 phpBB.fr
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring
Imacros Skip If Not Found
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question imacro on error goto x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; imacros error code 910 it only takes a minute: Sign up How to Loop imacros if error occurs? up vote 1 down vote favorite im trying to run a simple script, loop an imacros over and over but if a link does not http://forum.imacros.net/viewtopic.php?f=2&t=11130 exist then move on to the next loop but if the link does exist then just keep running imacros as usual. This is the script I have made very basic. This is my imacros version VERSION BUILD=8601111 RECORDER=FXSET !DATASOURCE check.csv TAB T=1 URL GOTO=http://{{!COL1}}.blogspot.com/ TAG POS=2 TYPE=A ATTR=HREF:http://{{!COL1}}.blogspot.com/ 'if fail start next loop, if not fail keep running macros ADD !EXTRACT {{!COL1}} SAVEAS TYPE=EXTRACT FOLDER=c:\iMacros FILE=table.csv This is my javascript version. const iterations = 100; // Number of times to http://stackoverflow.com/questions/21061040/how-to-loop-imacros-if-error-occurs loop var macro; macro = "CODE:"; macro += "VERSION BUILD=8300326 RECORDER=FX" + "\n"; macro += "SET !ERRORIGNORE YES" + "\n"; macro += "SET !DATASOURCE check.csv" + "\n"; macro += "SET !LOOP 8" + "\n"; macro += "SET !DATASOURCE_COLUMNS 3" + "\n"; macro += "set !var1 1" + "\n"; macro += "add !var1 {{!loop}}" + "\n"; macro += "SET !DATASOURCE_LINE {{!var1}}" + "\n"; macro += "TAB T=1" + "\n"; macro += "URL GOTO=http://{{!COL1}}.blogspot.com/" + "\n"; macro += "SET !ERRORIGNORE NO" + "\n"; macro += "TAG POS=2 TYPE=A ATTR=HREF:http://{{!COL1}}.blogspot.com/" + "\n"; 'if link fail start next loop, if not fail keep running macros macro += "ADD !EXTRACT {{!COL1}}" + "\n"; macro += "SAVEAS TYPE=EXTRACT FOLDER=c:\iMacros FILE=table.csv" + "\n"; iimPlay(macro) javascript loops imacros share|improve this question edited Jan 11 '14 at 10:36 asked Jan 11 '14 at 10:14 Cpher Cass 2619 I tried but Im barely learning javascript so I was only able to create a script that wouldent loop through the csv. if you can help me out would be great. –Cpher Cass Jan 11 '14 at 10:19 I added the javascript version I have came up with. –Cpher Cass Jan 11 '14 at 10:23 Oh dear, I wouldn't exactly call that "using JavaScript" .. but it is JS code (although using const is a bit iffy). –user2864740 Jan 11 '14 at 10:26 What happens when you run the [JavaScrip
More. iMacros: How can i restart the script when an error occurs? Discussion in 'General Scripting Chat' started by mfiii, Apr 14, 2012. Apr 14, 2012 #1 mfiii Regular Member Joined: May 16, 2010 Messages: 443 Likes Received: http://www.blackhatworld.com/seo/imacros-how-can-i-restart-the-script-when-an-error-occurs.430521/ 40 Hello, How can i restart the script when an error occurs in iMacros? So it will not stop but start again from the beginning. Thanks Advertise on BHW Apr 14, 2012 #2 kancelari Junior Member Joined: Sep 15, 2009 Messages: 146 Likes Received: 54 Just make SET !ERRORIGNORE YES It will pass error and continue runing the script. You also can make skip error timeout on options to 5 - 10 secs Apr 14, 2012 #3 mfiii Regular Member on error Joined: May 16, 2010 Messages: 443 Likes Received: 40 kancelari said: ↑ Just make SET !ERRORIGNORE YES It will pass error and continue runing the script. You also can make skip error timeout on options to 5 - 10 secsClick to expand... I have tried this but nothing Script only runs one command. I play it with loop Apr 14, 2012 #4 TopSeoDude15 BANNED BANNED Joined: Apr 14, 2012 Messages: 41 Likes Received: 0 set error ignore yes then it might imacros restart on fix things up Apr 14, 2012 #5 mfiii Regular Member Joined: May 16, 2010 Messages: 443 Likes Received: 40 TopSeoDude15 said: ↑ set error ignore yes then it might fix things upClick to expand... As i said before i had tried this but nothing.. Apr 14, 2012 #6 jubu211 Newbie Joined: Feb 20, 2011 Messages: 34 Likes Received: 16 OP might want it to error so that it doesn't do the following command but still wants it to restart. I've been looking forever for this solution and the best I could find was having to use javascript or something like that with the imacro. It's a little to advanced for me so I just settled for ignore error. There is an EVAL command that you can use in imacro. So that may possibly help but that's written in javascript, so once again you have to find out how that is written. Edit: after rereading this may not be the case. Does it say what error you're having? Last edited: Apr 14, 2012 Apr 14, 2012 #7 mfiii Regular Member Joined: May 16, 2010 Messages: 443 Likes Received: 40 jubu211 said: ↑ OP might want it to error so that it doesn't do the following command but still wants it to restart. I've been looking forever for this solution and the best I could find was having to use javascript or something like that with the imacro. It's a little to ad