Help generating random words

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Help generating random words

by czepurnyj on Mon Aug 12, 2013 4:56 pm

Sup dudes. I need help with this script to post in a forum. Its very simple (i think), i need know how to add more words in the !var, my friend send it to me and i dont know how do edit it. Here are the script, he use a math.random for dont repeat the words. I need know how to add more words in it. :)

Code: Select all
VERSION BUILD=8300326 RECORDER=FX

SET !VAR1 EVAL("var array = [\"hi\"];array[Math.floor(Math.random() * array.length)];")

TAB T=1
URL GOTO=http://site.com
TAG POS=1 TYPE=IMG ATTR=ALT:Exibir<SP>a<SP>última<SP>mensagem
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=CLASS:openAjaxForm
WAIT SECONDS=3
TAG POS=1 TYPE=TEXTAREA ATTR=ID:messageContent CONTENT={{!VAR1}}
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=CLASS:formSubmit
WAIT SECONDS=15
czepurnyj
 
Posts: 2
Joined: Mon Aug 12, 2013 4:49 pm

Return to iMacros for Firefox

Who is online

Users browsing this forum: Google [Bot] and 15 guests

-->