1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Imacros help

Discussion in 'Hire a Freelancer' started by nemoku, Dec 6, 2009.

  1. nemoku

    nemoku BANNED BANNED

    Joined:
    Dec 3, 2009
    Messages:
    50
    Likes Received:
    0
    Am almost maked my bot..

    It's done 90%

    Am using Imacros..

    and javascript for create random accounts..


    Maybe you have ideo how to make it rate video? Because they wont rate it....

    Look in imacros code:


    Code:
        VERSION BUILD=6240709 RECORDER=FX
        SET !TIMEOUT 100
        TAB T=1
        URL GOTO=http://www6.videogaga.lt/dk?dm.id=videosAll
        TAG POS=1 TYPE=A ATTR=TXT:Registracija
        TAG POS=1 TYPE=INPUT:TEXT ATTR=* CONTENT={{login}}
        SET !ENCRYPTION NO
        TAG POS=1 TYPE=INPUT:PASSWORD ATTR=* CONTENT={{password}}
        SET !ENCRYPTION NO
        TAG POS=2 TYPE=INPUT:PASSWORD ATTR=* CONTENT={{password}}
        TAG POS=2 TYPE=INPUT:TEXT ATTR=* CONTENT={{email}}
        TAG POS=1 TYPE=BUTTON ATTR=TXT:Toliau
        TAG POS=1 TYPE=BUTTON ATTR=TXT:Toliau
        TAG POS=1 TYPE=SPAN ATTR=TXT:Video
        TAG POS=1 TYPE=DIV ATTR=CLASS:Dekor3gp_dekor
        WAIT SECONDS=1
        TAG POS=5 TYPE=DIV ATTR=CLASS:rate_full*
    Javascript - For random accounts:


    Code:
    const iterations = 50; // How many times to loop through
    const macroName  = 'test'; // The name of the macro to launch
    
    /*********************************************************************
                Do not change the code below
    *********************************************************************/
    var logins = createLogins(iterations); // An Array of random generated Logins
    var passwords = createLogins(iterations); // An Array of random generated Passwords
    var emails = createEmails(iterations); // An Array of random generated email addresses
    
    for( var i=0; i<iterations; i++)
    {
       iimSet("login", logins[i]);
       iimSet("email", emails[i]);
       iimSet("password", passwords[i]);
       iimPlay(macroName);
    }
    
    // Create an Array of Logins
    function createLogins(total)
    {
       total = getValidInteger(total, 1);
       
       var returnValue = new Array();
       
       for( var i=0; i<total; i++)
          returnValue[i] = generateRandomString(3, 16);
       
       return returnValue;
    }
    
    // Create an Array of email addresses
    function createEmails(total)
    {
       total = getValidInteger(total, 1);
       
       var returnValue = new Array();
       
       for( var i=0; i<total; i++)
          returnValue[i] = generateRandomString(3, 25) + '@' + generateRandomString(3, 15) + '.' + generateRandomString(2, 3);
       
       return returnValue;
    }
    
    // generate a random string in a range of lengths
    function generateRandomString (minLength, maxLength)
    {
       const validCharacters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
       stringLength = generateRandomInteger(minLength, maxLength);
       
       returnValue = '';
       
       for ( var i=0; i< stringLength; i++)
          returnValue += validCharacters.charAt(generateRandomInteger(0, validCharacters.length -1));
       
       return returnValue;
    }
    
    // Generate an integer in a given range
    function generateRandomInteger(minimum, maximum)
    {
       minimum = getValidInteger(minimum, 1);
       maximum = getValidInteger(maximum, minimum + 1);
       return Math.floor(Math.random() * (maximum - minimum)) + minimum;
    }
    
    
    // Make sure we're passing valid integers
    function getValidInteger(value, defaultValue)
    {
       var returnValue = parseInt(value);
       var defaultValue = parseInt(defaultValue);
       
       if (Number.Nan == defaultValue)
          defaultValue = 0;
          
       return (Number.Nan == returnValue)? defaultValue : returnValue;
    }
    /*********************************************************************
                Do not change the code above
    *********************************************************************/
    But how can i make it to rate video?

    Script video:

    http://www.youtube.com/watch?v=JekhWggu7dc
     
    Last edited: Dec 7, 2009
  2. nemoku

    nemoku BANNED BANNED

    Joined:
    Dec 3, 2009
    Messages:
    50
    Likes Received:
    0
    I'll pay who will help me.