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

iMacro Error [VAR]

Discussion in 'General Scripting Chat' started by hvp17, Mar 10, 2013.

  1. hvp17

    hvp17 Regular Member

    Joined:
    Aug 2, 2012
    Messages:
    448
    Likes Received:
    526
    Occupation:
    Student
    Location:
    Making Papal monkeys
    Hey, i getting error:

    Code:
    SyntaxError: unknown command: VAR, line: 1 (Error code: -910)
    Here's the script:

    Code:
    var macroStart;
        macroStart ="CODE:";
        macroStart +="SET !ERRORIGNORE YES" + "\n"; 
        macroStart +="SET !TIMEOUT_TAG 1" + "\n";
        macroStart +="SET !TIMEOUT_STEP 1" + "\n";
        macroStart +="SET !TIMEOUT_PAGE 30" + "\n";
        macroStart +=" SET !REPLAYSPEED FAST" + "\n";
        macroStart +="SET !TIMEOUT_MACRO 150" + "\n";
        macroStart +="TAB T=1" + "\n";
        macroStart +="WAIT SECONDS=0" + "\n";
        macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Youtube<SP>Likes" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Like" + "\n";
        macroStart += "TAB T=2" + "\n";
        macroStart += " FRAME F=0" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart += "TAB T=2" + "\n";
            macroStart +="WAIT SECONDS=2" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAB T=1" + "\n";
        macroStart += "TAB CLOSEALLOTHERS" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Like" + "\n";
        macroStart += "TAB T=2" + "\n";
        macroStart += " FRAME F=0" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart += "TAB T=2" + "\n";
            macroStart +="WAIT SECONDS=2" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAB T=1" + "\n";
        macroStart += "TAB CLOSEALLOTHERS" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Like" + "\n";
        macroStart += "TAB T=2" + "\n";
        macroStart += " FRAME F=0" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart += "TAB T=2" + "\n";
            macroStart +="WAIT SECONDS=2" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAB T=1" + "\n";
        macroStart += "TAB CLOSEALLOTHERS" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Like" + "\n";
        macroStart += "TAB T=2" + "\n";
        macroStart += " FRAME F=0" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart += "TAB T=2" + "\n";
            macroStart +="WAIT SECONDS=2" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAB T=1" + "\n";
        macroStart += "TAB CLOSEALLOTHERS" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Like" + "\n";
        macroStart += "TAB T=2" + "\n";
        macroStart += " FRAME F=0" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart += "TAB T=2" + "\n";
            macroStart +="WAIT SECONDS=2" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAB T=1" + "\n";
        macroStart += "TAB CLOSEALLOTHERS" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Like" + "\n";
        macroStart += "TAB T=2" + "\n";
        macroStart += " FRAME F=0" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart += "TAB T=2" + "\n";
            macroStart +="WAIT SECONDS=2" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAB T=1" + "\n";
        macroStart += "TAB CLOSEALLOTHERS" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Like" + "\n";
        macroStart += "TAB T=2" + "\n";
        macroStart += " FRAME F=0" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart += "TAB T=2" + "\n";
            macroStart +="WAIT SECONDS=2" + "\n";
        macroStart += "TAG POS=1 TYPE=BUTTON ATTR=ID:watch-like" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
        macroStart += "TAB T=1" + "\n";
        macroStart += "TAB CLOSEALLOTHERS" + "\n";
        macroStart +="WAIT SECONDS=6" + "\n";
       
    
    
    
    var i=0;
    var n=prompt("Input the number of Facebook loops.",7)
    
    for (i=1; i <= n; i++)
    {
    iimPlay("CODE:"+"URL GOTO=www.addmefast.com")
    
    
    iimPlay(macroStart,25)
    
    iimDisplay("Current loop is: "+i)
    
    iimDisplay("New Page")
    
    }
    Anyone knows how to fix that?

    Thank you.
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    Thread moved to the proper place.
     
  3. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    5,905
    Likes Received:
    7,140
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    it seems that you're mixing JS with imacros scripting language, it won't work that way
    i have no experience with JS, so i cannot tell you what to do exactly, but you can try to look for the solution in this thread, 223th post:
    Code:
    http://forum.iopus.com/viewtopic.php?t=7877