how to skip loop if any error on playing loop

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++.

Moderators: Community Moderators, iMacros Moderators

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.

how to skip loop if any error on playing loop

by myapkap on Sun Dec 29, 2013 6:11 pm

need to skip the loop to next loop if any error on playing loop

i use imacros for search and collect data from website with multiple pages
i am using keyword in csv file
some keyword have 20 pages and some keyword have 3 to 5 pages only
so i need to skip loop if any error in playing loop (If TXT:NEXT not found on page)
i tried using ERRORIGNORE but it just ignore error and playing same loop but i need to skip playing loop

Code: Select all
SET !DATASOURCE C:\Users\Gopi\Desktop\autokey.csv
SET !DATASOURCE_COLUMNS 1
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}

SET !ERRORIGNORE YES

TAG POS=1 TYPE=SPAN ATTR=TXT:Search<SP>Videos
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT ATTR=NAME:data[Search][site_id] CONTENT=%embed|19745
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT ATTR=NAME:data[Search][category_id] CONTENT=%3445522
WAIT SECONDS=5
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:data[Search][keywords] CONTENT={{!COL1}}
WAIT SECONDS=5
TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=NAME:data[Search][search]
WAIT SECONDS=5


WAIT SECONDS=3
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%4
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%3
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%2
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%1
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Next


WAIT SECONDS=3
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%4
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%3
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%2
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%1
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Next

WAIT SECONDS=3
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%4
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%3
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%2
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%1
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Next

WAIT SECONDS=3
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%4
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%3
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%2
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%1
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Next


WAIT SECONDS=3
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%4
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%3
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%2
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%1
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Next


WAIT SECONDS=3
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%4
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%3
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%2
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%1
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Next


WAIT SECONDS=3
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%4
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%3
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%2
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%1
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Next


WAIT SECONDS=3
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%4
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%3
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%2
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%1
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Next


WAIT SECONDS=3
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%4
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%3
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%2
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%1
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Next


WAIT SECONDS=3
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%4
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%3
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%2
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=SELECT  ATTR=NAME:data[Search][orderby_id] CONTENT=%1
TAG POS=1 TYPE=BUTTON:SUBMIT  ATTR=NAME:data[Search][search]
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>All<SP>Non<SP>Transferred
WAIT SECONDS=5
TAG POS=1 TYPE=A ATTR=TXT:Next
myapkap
 
Posts: 1
Joined: Sun Dec 29, 2013 4:52 pm

Return to Scripting and Command Line Interface

Who is online

Users browsing this forum: No registered users and 3 guests

-->