TAG POS= ?

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
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
[Anonymous]
Posts: 2
Joined: Thu Oct 24, 2013 6:26 pm

TAG POS= ?

Post by [Anonymous] » Thu Oct 24, 2013 6:46 pm

Inform anyone know the existence of a command "TAG POS= ? " , where the position "?" is chosen a random number in a range from X to Y. :roll:

I await answers. :wink:
User avatar
bobis
Posts: 364
Joined: Sat Sep 11, 2010 3:34 pm
Contact:

Re: TAG POS= ?

Post by bobis » Thu Oct 24, 2013 7:08 pm

Code: Select all

SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*10 + 1); randomNumber;")
TAG POS= {{!var1}}
Replace 10 and 1 with your X and Y
Get Best iMacros scripts at http://imacrosbot.com/
[Anonymous]
Posts: 2
Joined: Thu Oct 24, 2013 6:26 pm

Re: TAG POS= ?

Post by [Anonymous] » Thu Oct 24, 2013 7:41 pm

bobis wrote:

Code: Select all

SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*10 + 1); randomNumber;")
TAG POS= {{!var1}}
Replace 10 and 1 with your X and Y
Thank you. Worked. :twisted: :mrgreen: :wink:

EDIT: What happens if I put some number within "()" ? :roll:
Post Reply