view random pages

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
Posts: 1
Joined: Mon Nov 03, 2014 5:37 pm

view random pages

Post by fxgod » Mon Nov 03, 2014 5:45 pm

hello friends.

Sorry for my bad english.

I have a problem.

I need to create macro code to visit 4 urls.

Each time to visit a random.

piece of code:

function scrollDown() {
iimPlayCode("TAG POS=1 TYPE=IMG ATTR=SRC:");

var tiempo = "CODE:SET !ERRORIGNORE YES" + "\n";

tiempo += "TAB T=2" + "\n";
tiempo += "URL GOTO=javascript:window.scrollBy(0,5000)\n";
tiempo += "WAIT SECONDS=3" + "\n";
tiempo += "WAIT SECONDS=" + eval(Math.floor(Math.random()*15 + 30)) + "\n";


function jumpScroll() {
var tiempo = "CODE:SET !ERRORIGNORE YES" + "\n";
tiempo += "URL GOTO=javascript:window.scroll(0,150)\n";
tiempo += "WAIT SECONDS=3" + "\n";
tiempo += "CLEAR\n";
tiempo += "TAB CLOSE" + "\n";




******************************* = where I insert the code for random urls

Can you help?
Post Reply