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

How to add time variables in iMacros?

Discussion in 'BlackHat Lounge' started by BeerMe, Feb 15, 2016.

  1. BeerMe

    BeerMe Registered Member

    Joined:
    Dec 20, 2014
    Messages:
    77
    Likes Received:
    12
    I don't know if this is possible or not. I'm currently using WAIT SECONDS=100. I'd like to mix this up so it isn't always 100 seconds. Can this be done? I'd like it for example to be somewhere between 100 and 200.
     
  2. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    6,952
    Likes Received:
    7,982
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    lol, it's me again

    so, what i posted in the thread where you asked about pinterest, that macro i made uses random wait time
    here is a snippet modified to between 100 and 200 secs:

    HTML:
    SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*200 + 100); randomNumber;")
    WAIT SECONDS={{!VAR1}}
     
    • Thanks Thanks x 1
  3. THUNDERELVI

    THUNDERELVI Elite Member

    Joined:
    Sep 12, 2009
    Messages:
    2,383
    Likes Received:
    2,060
    Gender:
    Male
    Location:
    W3
    Create a variable, assign it a random generated number and then assign the variable to the WAIT time (instead of the value 100).
     
  4. BeerMe

    BeerMe Registered Member

    Joined:
    Dec 20, 2014
    Messages:
    77
    Likes Received:
    12
    Thank you HoNeYBiRD! This has made my work a whole lot easier. You've been extremely helpful. This is all new to me. The idea of automating stuff has never really sunk in until now. It's invaluable as I'm learning.
     
    • Thanks Thanks x 1