How to make iMacros change Value on every Loop?

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
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

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
lukxce
Posts: 1
Joined: Sat Sep 04, 2021 4:19 pm

How to make iMacros change Value on every Loop?

Post by lukxce » Sat Sep 04, 2021 4:24 pm

Hi guys!
I am pretty new to all this stuff and found the imacro extension by accident.
I recorded my macro and I can loop it thru the play function buy I need to have the component that is filled be different every loop
I am pasting the macro code below so it should be much clearer

VERSION BUILD=1011 RECORDER=CR
URL GOTO=https://xxxxx/admin/plans/edit/2
TAG POS=1 TYPE=TEXTAREA FORM=ACTION:https://xxxxxx/admin/plans/edit/2 ATTR=ID:i_coupons CONTENT=test1
TAG POS=1 TYPE=BUTTON FORM=ACTION:https://xxxxx/admin/plans/edit/2 ATTR=NAME:submit

I basically want the content value to increase by one every loop , so instead of having test1, the next loop should enter it as test2 , then test3 up until test 5000.

Thank you very much for your help!
Last edited by chivracq on Sun Sep 05, 2021 3:17 am, edited 1 time in total.
Reason: Thread Title edited: Several Typos corrected + Qt Mark added, User is not sharing a How-To...!!
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: How to make Imacro change value on every loop

Post by chivracq » Sun Sep 05, 2021 3:14 am

lukxce wrote:
Sat Sep 04, 2021 4:24 pm
Hi guys!
I am pretty new to all this stuff and found the imacro extension by accident.
I recorded my macro and I can loop it thru the play function buy I need to have the component that is filled be different every loop
I am pasting the macro code below so it should be much clearer

Code: Select all

VERSION BUILD=1011 RECORDER=CR
URL GOTO=https://xxxxx/admin/plans/edit/2
TAG POS=1 TYPE=TEXTAREA FORM=ACTION:https://xxxxxx/admin/plans/edit/2 ATTR=ID:i_coupons CONTENT=test1
TAG POS=1 TYPE=BUTTON FORM=ACTION:https://xxxxx/admin/plans/edit/2 ATTR=NAME:submit
I basically want the content value to increase by one every loop , so instead of having test1, the next loop should enter it as test2 , then test3 up until test 5000.

Thank you very much for your help!

Post approved but Low Quality...! (And probably wrong Sub-Forum..., as @User obviously didn't read the Forum Rules...) :(
(No Pb if "Wrong Sub-Forum", I'll be able to move the Thread to the "correct" one, no need to duplicate... 8) )

>>>

Yeah, "by accident", pity you didn't find and read the Forum Rules also "by accident", that would have improved a bit the Quality of your Thread,,, :idea:
=> Thread Title improved a bit, (by me), even if it was just to correct the 3 Typos you managed to squeeze in "iMacros" (correct Spelling thus...!), + adding a Qt Mark to your Thread Title, you are not sharing a 'How-To', ah-ah...! :roll:

+ CIM...! :mrgreen: (Read my Sig also...) :idea:
=>iMacros for CR v10.1.1(...?), 'PE'/'Free'/'Trial'...?, CR92...?, OS...?

+ Once you'll have mentioned your FCI, => then I'll read your OP..., and I'll very probably move your Thread to "the correct Sub-Forum" (=> 'General' one from your Thread Title, I didn't read any/much further..., except the "by accident" that caught my Eye, I guess because that Word or Expression doesn't "usually" get used (often) on the Forum, ah-ah...! :o ), as I very doubt your Thread has anything "'specific" to the 'iMacros for CR' Sub-Forum..., especially if you don't even mention your FCI, ah-ah...! :idea:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: How to make iMacros change Value on every Loop?

Post by chivracq » Tue Sep 07, 2021 1:48 am

Mini-Update, 3 days later, as still no Follow-up from @OP, who didn't even check the Forum anymore after opening their Thread, but Quality is pretty Low, the same Qt/Scenario has already been asked and answered maybe 100 times, so maybe they managed to throw 2 Keywords is the 'Search' Box for the Forum, and found x10's similar Threads and managed to adapt their Script to work... :P

=> Nice..., but even nicer would be it they shared their Solution/Script, to make this Thread also useful for other Users... :idea:

>>>

[And I moved the Thread to the 'General' Sub-Forum... :!: ]
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Post Reply