Skip to content

Instantly share code, notes, and snippets.

@sicksand
Created June 25, 2018 04:22
Show Gist options
  • Save sicksand/73bb3ba30988aec680a975d39b4cecd4 to your computer and use it in GitHub Desktop.
Save sicksand/73bb3ba30988aec680a975d39b4cecd4 to your computer and use it in GitHub Desktop.
9hitsviewer macro - Guna Ini from google
await Delay(1000);
while(await IsLoading()) {
await Delay(1000);
}
await Delay(5000);
ClickByXpath("input","type","text");
await Delay(3000);
Typing("gunaini");
await Delay(2000);
SendKeyPress(13);
await Delay(2000);
ClickByXpath(GenerateXpath("a","text","Guna Ini"));
await Delay(5000);
while(await IsLoading()) {
await Delay(5000);
}
var rand = Random(0, 100);
if (rand < 50)
{
await Delay(5000)
ClickByClass("adsbygoogle");
}
else if(rand >=51 && rand <70)
{
await Delay(5000);
ClickByXpath(GenerateXpath("a", "text", "Mengenai Guna Ini"));
}
else if(randNum >= 70)
{
await Delay(5000);
ClickByClass("adsbygoogle");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment