Wednesday, May 23, 2018

Searching youtube video with 9Hits Macros !

Hi, this is script for searching video on youtube with a random keyword from 2 keywords ("bypass captcha 9hits" and "google search 9hits"). Then click to the video if found in the search result.
Finally, while viewing the video, the script will click to the playing time bar for 2 times.

You are able to modify this script to fit your need, as well as make it more flexible, more real. Or you can also as help from us to create your own script.

https://youtu.be/mT6NSk1M3E4

//Wait for page load
await Delay(1000);
while(await IsLoading()) await Delay(1000);

//typing a random keyword and hit enter (13 is key code of Enter key)
var randomKeyword = RandomArray(["bypass captcha 9hits", "google search 9hits"]);
await Delay(1000);
await Typing(randomKeyword);
SendKeyPress(13);

//delay for a while when we just press Enter.
await Delay(5000);

//check for our target if found or not. I would like to click to any video has title contain 9Hits
var myTarget = GenerateXpath("a", "text", "%9Hit%");
var found = false;

var pageCount = 0;
while(!found)
{
    found = await GetAttribute(myTarget, "href");
    
    //if found the target, do click it
    if(found){
        ClickByXpath(myTarget);
        await Delay(5000); //wait for the video load
        
        //click to the time playing process
        await Delay(Random(5000, 10000));
        ClickByClass("ytp-load-progress");
        
        //click to the time playing process one more time
        await Delay(Random(5000, 10000));
        ClickByClass("ytp-load-progress");
        
        // do more interaction....
        //.....
        //----------
        
        break;
    }
    
    //if not found, scroll down to laod more result, and check again
    SendMouseWheel(0, -10000);
    await Delay(3000);
    
    //suppose we only scroll down for 5 times.
    if(pageCount > 5) break;
    pageCount++;
}

8 comments:

  1. Krishnafurniture is famous for diwan cum bed furniture.

    ReplyDelete

  2. thank you for information

    คาสิโนออนไลน์ที่น่าเชื่อถือและมีความเป็นมืออาชีพที่สุดในตอนนี้
    โปรโมชั่นGclub ของทางทีมงานตอนนี้แจกฟรีโบนัส 50%
    เพียงแค่คุณสมัคร สล็อตออนไลน์ กับทางทีมงานของเราเพียงเท่านั้น
    ร่วมมาเป็นส่วนหนึ่งกับเว็บไซต์คาสิโนออนไลน์ของเราได้เลยค่ะ
    สมัครสล็อตออนไลน์ >>> Goldenslot
    สนใจร่วมสนุกกับ คาสิโนออนไลน์ คลิ๊กได้เลย
    มีทั้งคาสิโนออนไลน์ หวยออนไลน์ ฟุตบอลออนไลน์ สล็อตออนไลน์ และอื่นๆอีกมากมาย

    ReplyDelete
  3. When browsing the net quite often I have discovered a web page than can be quite though provoking such as this one. I desired to shared that I discovered the information within your website was really amazing and interesting so that I've learned many things. I will be certain to look for the next write -up. Thank you very much for the excellent write-up. I will come again for sure in the future. https://www.totom1.com/토토사이트추천/

    ReplyDelete
  4. Link dowload macro editor or how many ?

    ReplyDelete