iMacro to generate random text or random number

Kerry picture Kerry · Oct 25, 2013 · Viewed 30.6k times · Source

I am using iMacros for quick static form filling and is there anyway I can generate and post random text using iMacros? For example can instead of good boy in the below iMacro for Google Search can I generate random text or random number and post it as content?

VERSION BUILD=8510617 RECORDER=FX
TAB T=1
URL GOTO=https://www.google.com.au/
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:gbqf ATTR=ID:gbqfq CONTENT=goodboy
TAG POS=1 TYPE=BUTTON FORM=ID:gbqf ATTR=ID:gbqfb

Answer

Bestmacros picture Bestmacros · Oct 25, 2013

random number from 1 to 10

TAB T=1
URL GOTO=https://www.google.com.au/
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*10 + 1); randomNumber;")
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:gbqf ATTR=ID:gbqfq CONTENT={{!var1}}