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

I need help with IMACRO SCV scrip

Discussion in 'General Scripting Chat' started by emailbuyer4good, Jun 18, 2012.

  1. emailbuyer4good

    emailbuyer4good Regular Member

    Joined:
    Aug 1, 2011
    Messages:
    330
    Likes Received:
    187
    Location:
    Trace my IP if you what to know
    I am currently using this script that I made but it is giving me the error:

    SyntaxError: wrong format of CMDLINE command, line: 4 (Error code: -910)

    And line "4" is the Datasource, and I put in the entire path so I am not sure how it is not finding it.

    Thanks for your help!
    :)

    Code:
    VERSION BUILD=7401110 RECORDER=FX
    TAB T=1
    TAB CLOSEALLOTHERS  
    CMDLINE !DATASOURCE SET !DATASOURCE C:\Users\Tristan Ziegler\Documents\iMacros\Datasources\LowesCoupons.csv
    SET !DATASOURCE_COLUMNS 6
    'Start at line 2 to skip the header in the file
    SET !LOOP 2
    'Increase the current position in the file with each loop 
    SET !DATASOURCE_LINE {{!LOOP}}
    ' Fill web form   
    URL GOTO=http://www.lowes.com/cd_Coupon+Registration_253641591_   
    TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:FNAME CONTENT={{!COL1}}
    TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:LNAME CONTENT={{!COL2}}
    TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:ADDRESS CONTENT={{!COL3}}
    TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:CITY CONTENT={{!COL4}}
    TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:STATE CONTENT={{!COL5}}
    TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:ZIP CONTENT={{!COL6}}
     
  2. dimme

    dimme Newbie

    Joined:
    Jun 18, 2012
    Messages:
    1
    Likes Received:
    1
    I got sometimes the same error when I used imacros with a long path, Try to use a short path like: "C:\Datasources\LowesCoupons.csv"
     
    • Thanks Thanks x 1
  3. emailbuyer4good

    emailbuyer4good Regular Member

    Joined:
    Aug 1, 2011
    Messages:
    330
    Likes Received:
    187
    Location:
    Trace my IP if you what to know
    Thanks it worked! :)