Two questions

Discussions and Tech Support related to the iMacros Google Chrome extension.
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
mwdar
Posts: 2
Joined: Thu May 12, 2011 6:02 pm

Two questions

Post by mwdar » Thu May 12, 2011 6:29 pm

hello
1) How to generate random number for n times?
2) How to extract a variable content from a text field and assign its to CONTENT?
MattBell7
Posts: 627
Joined: Thu Nov 26, 2009 11:07 am
Location: United Kingdom

Re: Two questions

Post by MattBell7 » Thu May 12, 2011 7:06 pm

random numbers, depends which scripting language your using, if not, this'll be very very hard

add EXTRACT=TXT when you select the source.

then CONTENT={{!EXTRACT}} in the target
mwdar
Posts: 2
Joined: Thu May 12, 2011 6:02 pm

Re: Two questions

Post by mwdar » Thu May 12, 2011 11:43 pm

I need to go to that page and click the buttom and assign the generated number to age Content.
here is my code

Code: Select all

VERSION BUILD=1110311 RECORDER=CR
URL GOTO=http://m3gasoft.blogspot.com/2011/05/function-randomstring-var-chars.html
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:randform ATTR=VALUE:Create<SP>Random<SP>String
TAG POS=1 TYPE=INPUT:TEXT:FORM=ACTION:http://xxxxxxxxx ATTR=ID:number CONTENT={{!EXTRACT}}
where to add EXTRACT=TXT?
MattBell7
Posts: 627
Joined: Thu Nov 26, 2009 11:07 am
Location: United Kingdom

Re: Two questions

Post by MattBell7 » Fri May 13, 2011 9:37 am

between the last 2 lines, you need to select the generated number, and add the EXTRACT command to that
Tom, Tech Support
Posts: 3529
Joined: Mon May 31, 2010 4:59 pm

Re: Two questions

Post by Tom, Tech Support » Sat May 14, 2011 3:48 pm

Code: Select all

URL GOTO=http://m3gasoft.blogspot.com/2011/05/function-randomstring-var-chars.html
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:randform ATTR=VALUE:Create<SP>Random<SP>String
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:randform ATTR=NAME:randomfield EXTRACT=TXT

TAG POS=1 TYPE=INPUT:TEXT:FORM=ACTION:http://xxxxxxxxx ATTR=ID:number CONTENT={{!EXTRACT}}
Regards,

Tom, iMacros Support
Post Reply