TabFocus

Macros tutorials, Sharing your good scripts to everyone!
Post Reply
opsfafsme
Posts: 71
Joined: Mon Jul 02, 2018 9:47 am

TabFocus

Post by opsfafsme » Mon Aug 05, 2019 3:05 pm

Hi,
recently asked about if the viewer opens additional tabs, how to switch between them.
I want to give an example of a small macro as an example of how to use it.
This macro reads the value from the settings of your site "Max Popups".
It opens exactly as many tabs with your site and sequentially switching between tabs clicks a random link on your site.
Simulated such a chaotic movement of the site. I hope someone will be useful.
Attention! opening additional tabs increases the number of points removed from the balance for visiting your site.

Code: Select all


var GMP = await GetMaxPopups();
await WaitForLoading ();
for (var i = 0; i < GMP; i++) {
    await EvaluateScript("window.open('"+ await GetUrl() +"','_blank')");
}
GMP = GMP + 1;
do {
    i = 1;
    do {
        await TabFocus(i);
	await WaitForLoading ();
	await Delay(Random(3000,5000));
        await ClickRandomInternalLink(true);
        i++;
    } while ( i<=GMP )
} while (true)

Points for sale.
10.000.000 -> €7
20.000.000 -> €12
40.000.000 -> €25

More -> Pm me (opsfafsme) to custom price
Webmoney, Bitcoin, and more!

I'll start your 9Hits sessions (up to 400) on my vps.
30 9Hits sessions -> €9.87/m

Post Reply