how to use EVAL jump into other urls after finished action

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
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
a2515125
Posts: 109
Joined: Tue Dec 06, 2016 3:37 am

how to use EVAL jump into other urls after finished action

Post by a2515125 » Fri Apr 07, 2017 5:46 pm

hey,

I am writing a code to auto press liker button on different categories of shopping website.

Each category has around 99 pages....which means my code would only run 99 pages

and then the code does not know how to jump to other categories (such as girly stuff, boy stuff, computer, hardware) and keep running 99pages and then the jump into another categories, do it again.


so my problem is how to use EVAL syntax jump into another categories(urls) (ex. from clothing to electric, pc, house, car, kitchen stuff, cosmetic and so on)to run again after it finished 99 pages :idea:


windows 10/imacros v8.9.7/FFv 50

Code: Select all

VERSION BUILD=8970419 RECORDER=FX
SET !REPLAYSPEED FAST
SET !EXTRACT_TEST_POPUP NO
SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 0

FILTER TYPE=IMAGES STATUS=ON
TAB T=1


'set to press liker button'

TAG POS=2 TYPE=PATH ATTR=D:M<SP>7.5<SP>4.2<SP>l<SP>1.3<SP>-1.3<SP>c<SP>1.2<SP>-1.2<SP>3.1<SP>-1.2<SP>4.3<SP>0<SP>l<SP>0<SP>0<SP>c<SP>1.2<SP>1.2<SP>1.2<SP>3.2<SP>0<SP>4.4<SP>l<SP>-5.6<SP>5.8<SP>L<SP>1.9<SP>7.3<SP>c<SP>-1.2<SP>-1.2<SP>-1.2<SP>-3.2<SP>0<SP>-4.4<SP>l<SP>0<SP>0<SP>c<SP>1.2<SP>-1.2<SP>3.1<SP>-1.2<SP>4.3<SP>0<SP>L<SP>7.5<SP>4.2<SP>z&&FILL:none&&STROKE-LINEJOIN:round&&STROKE-MITERLIMIT:10&&STROKE-WIDTH:2&&TXT:
WAIT SECONDS=1

'move next page in the same category'
SET next EVAL("var x; var y=\"{{!LOOP}}\";if(y%50==0){x=1}else{x=0}; x;")

TAG POS={{next}}  TYPE=DIV ATTR=CLASS:shopee-icon-button<SP>shopee-icon-button--right<SP>













Post Reply