What is the correct syntax for joining variables to insert in CONTENT =

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
lupobaho
Posts: 1
Joined: Mon Apr 20, 2020 8:15 am

What is the correct syntax for joining variables to insert in CONTENT =

Post by lupobaho » Mon Apr 20, 2020 10:28 am

Greetings!

Help me find the right and fast solution ...
Randomly I collect words from different columns of the file and need to be assembled into text for comment ...

Everything is going well ... separately, one word is entered normally, but I need to enter the whole text at a time. otherwise, if you write alternately by word, then the next word deletes the previous one.

I prescribed command in an experimental version, but every day it changes the content on the site and therefore does not fit.

As a result, I need to correctly write the syntax to collect all the variables and enter the whole text with the collected random words.

Here is the working code if you put one word in the last line:
error + = "TAG POS = 1 TYPE = TEXTAREA FORM = NAME: NoFormName ATTR = NAME: comment CONTENT =" + word1 + "";

but after assembling the variables together, you need to correctly specify the syntax so that the comment is fully registered with all the words on the site.

var randomName = Math.floor (Math.random () * 9 + 1); randomName;

var error = "CODE:";
error + = "SET! ERRORIGNORE YES" + "\ n";
error + = "SET! ERRORCONTINUE YES" + "\ n";
error + = "SET! REPLAYSPEED FAST" + "\ n";
error + = "SET! DATASOURCE_DELIMITER;" + "\ n";
error + = "CMDLINE! DATASOURCE D: \\ yandex_comment_text.csv" + "\ n";
error + = "SET! DATASOURCE_COLUMNS 14" + "\ n";
error + = "SET! LOOP 1" + "\ n";
error + = "SET! DATASOURCE_LINE" + randomName + "\ n";
error + = "ADD! EXTRACT {{! COL1}}";
iimPlay (error);

var word1 = iimGetLastExtract (1)
iimDisplay (word1);

var randomName = Math.floor (Math.random () * 5 + 1); randomName;

var error = "CODE:";
error + = "SET! ERRORIGNORE YES" + "\ n";
error + = "SET! ERRORCONTINUE YES" + "\ n";
error + = "SET! REPLAYSPEED FAST" + "\ n";
error + = "SET! DATASOURCE_DELIMITER;" + "\ n";
error + = "CMDLINE! DATASOURCE D: \\ yandex_comment_text.csv" + "\ n";
error + = "SET! DATASOURCE_COLUMNS 14" + "\ n";
error + = "SET! LOOP 1" + "\ n";
error + = "SET! DATASOURCE_LINE" + randomName + "\ n";
error + = "ADD! EXTRACT {{! COL2}}";
iimPlay (error);

var word2 = iimGetLastExtract (1)
iimDisplay (word2);

var randomName = Math.floor (Math.random () * 6 + 1); randomName;

var error = "CODE:";
error + = "SET! ERRORIGNORE YES" + "\ n";
error + = "SET! ERRORCONTINUE YES" + "\ n";
error + = "SET! REPLAYSPEED FAST" + "\ n";
error + = "SET! DATASOURCE_DELIMITER;" + "\ n";
error + = "CMDLINE! DATASOURCE D: \\ yandex_comment_text.csv" + "\ n";
error + = "SET! DATASOURCE_COLUMNS 14" + "\ n";
error + = "SET! LOOP 1" + "\ n";
error + = "SET! DATASOURCE_LINE" + randomName + "\ n";
error + = "ADD! EXTRACT {{! COL3}}";
iimPlay (error);

var word3 = iimGetLastExtract (1)
iimDisplay (word3);

var word4 = word1 + word2 + word3;
iimDisplay (word4);

var error = "CODE:";
error + = "SET! ERRORIGNORE YES" + "\ n";
error + = "SET! ERRORCONTINUE YES" + "\ n";
error + = "SET! REPLAYSPEED MEDIUM" + "\ n";
error + = "TAG POS = 1 TYPE = BUTTON ATTR = TXT: Add <SP> review" + "\ n";
error + = "TAG POS = 5 TYPE = DIV ATTR = CLASS: Rating-Star && TXT:" + "\ n";
error + = "TAG POS = 1 TYPE = TEXTAREA FORM = NAME: NoFormName ATTR = NAME: comment CONTENT =" + word4 + "";
iimPlay (error);

https://lucalussurioso.com/ - porn tube with tons leaked videos ;)
Last edited by lupobaho on Thu Sep 10, 2020 9:16 am, edited 1 time in total.
Post Reply