+1 to product ID

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderators: Marcia, iOpus, Hannes, iOpus, Tech Support, Tom, iOpus

+1 to product ID

Postby tomharto on Tue Nov 03, 2009 8:04 am

Hi,


i have a line in my macro what says

TAG POS=1 TYPE=SELECT FORM=NAME:set_products_filter_id ATTR=NAME:products_filter CONTENT=%270

instead of %270 at the end (270 being the product id) could i have it so it says CONTENT=+1 so if i was on product 270 it would go to 271, then next time it runs the line it goes to 272, or is that impossible with this add-on? thanks.
tomharto
 
Posts: 5
Joined: Tue Nov 03, 2009 8:00 am

Re: +1 to product ID

Postby Hannes, iOpus on Wed Nov 04, 2009 1:50 am

Use the!LOOP variable and run that part in loop mode:
Code: Select all
'set the initial value (i.e. the value of !LOOP in the first loop)
SET !LOOP 270
' use !LOOP in the TAG command
TAG POS=1 TYPE=SELECT FORM=NAME:set_products_filter_id ATTR=NAME:products_filter CONTENT=%{{!LOOP}}
Hannes, iOpus Support
Hannes, iOpus
 
Posts: 1838
Joined: Thu Sep 21, 2006 6:27 am

Re: +1 to product ID

Postby tomharto on Wed Nov 04, 2009 2:04 am

Thanks, Ive dont some messing with the code and cant get it to keep ascending up the list,

maybe it will help if i show you an example because im not good at explaining :P

my current code is


Code: Select all
TAG POS=1 TYPE=SELECT FORM=NAME:set_products_filter_id ATTR=NAME:products_filter CONTENT=%288
TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:set_products_filter_id ATTR=SRC:http://www.221artstore.co.uk/admin/includes/languages/english/images/buttons/button_display.gif


so i tried

Code: Select all
'set the initial value (i.e. the value of !LOOP in the first loop)
SET !LOOP 288
' use !LOOP in the TAG command
TAG POS=1 TYPE=SELECT FORM=NAME:set_products_filter_id ATTR=NAME:products_filter CONTENT=%{{!LOOP}}


TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:set_products_filter_id ATTR=SRC:http://www.221artstore.co.uk/admin/includes/languages/english/images/buttons/button_display.gif


but when i did that it just stayed at 288. Where did i go wrong?

Thanks
tomharto
 
Posts: 5
Joined: Tue Nov 03, 2009 8:00 am

Re: +1 to product ID

Postby Hannes, iOpus on Wed Nov 04, 2009 2:15 am

Did you use the "Play (loop)" button to start the macro?
Hannes, iOpus Support
Hannes, iOpus
 
Posts: 1838
Joined: Thu Sep 21, 2006 6:27 am

Re: +1 to product ID

Postby tomharto on Wed Nov 04, 2009 2:19 am

Yeah i did, but weirdly when you said that i tried again and it works :S, anyway thanks alot mate :).

EDIT: i think it was down to the current/Max boxes, the current was 288 and i set the max to 10(thinking repeat it ten times)i changed that to 298 and it works:)
tomharto
 
Posts: 5
Joined: Tue Nov 03, 2009 8:00 am


Return to General Support & Discussions

Who is online

Users browsing this forum: No registered users and 1 guest