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

Imacro help please

Discussion in 'General Programming Chat' started by hollow5342, Jul 25, 2014.

  1. hollow5342

    hollow5342 Newbie

    Joined:
    Jul 25, 2014
    Messages:
    2
    Likes Received:
    0
    Anyone know the code to making an Imacro in which you sign in with different randomly generated email that doesn't have to exist?
    you sign in with different emails everytime and its randomly generated.

    for example
    this macro will
    sign me in with a randomly generated email
    then sign me out and sign me back in with another randomly generated email
    the email doesn't have to exist
     
    Last edited: Jul 25, 2014
  2. Ming the Merciless

    Ming the Merciless Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 30, 2012
    Messages:
    680
    Likes Received:
    820
    Location:
    United States
    Do you mean like a disposable email address? I use those all of the time with iMacros. To make it "random" I just use the code below to get a random long number before the "@disposable email address"

    Code:
    SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*9999999 + 1111111); randomNumber;")
    Not sure if that is what you are looking for. Hope it helps! Good luck.
     
    • Thanks Thanks x 1
  3. hollow5342

    hollow5342 Newbie

    Joined:
    Jul 25, 2014
    Messages:
    2
    Likes Received:
    0
    no for example here is the macro

    TAB T=1
    URL GOTO=url
    TAG POS=1 TYPE=INPUT:TEXT FORM=ID:new_signature ATTR=NAME:signature[first_name] CONTENT=asdf
    TAG POS=1 TYPE=INPUT:TEXT FORM=ID:new_signature ATTR=NAME:signature[last_name] CONTENT=asdf
    TAG POS=1 TYPE=INPUT:TEXT FORM=ID:new_signature ATTR=NAME:signature[mail] CONTENT=asdf at 5mail dottted come

    i type asdf at 5mail dottted come but i want it to type something like asdf2342342 at 5mail dottted come but the number be it random
     
  4. sassafras

    sassafras Junior Member

    Joined:
    May 27, 2013
    Messages:
    161
    Likes Received:
    63
    Learn to use iMacros better, using variables is very basic.

    Ming's code will give you a random number and sore it in !VAR1
    Then just use asdf{{!VAR1}}@...
     
  5. Ming the Merciless

    Ming the Merciless Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 30, 2012
    Messages:
    680
    Likes Received:
    820
    Location:
    United States
    ^^^ Yup, that is how you get a random number. Google: iMacros variables.