SyntaxError: can not parse macro line: ATTR=ID:mod_views_map

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderator: iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

SyntaxError: can not parse macro line: ATTR=ID:mod_views_map

by Pingpong on Mon Jun 14, 2010 3:38 pm

Hi I hope you can help me, I'm no programer tho have worked in IT in the past so know my way round a key board, I am trying to use a macro given to me which apparently works, but when I try to load the file it gives the following error in the yellow box..... SyntaxError: can not parse macro line: ATTR=ID:mod_views_map Here is the macro I'm trying to use .


ATTR=ID:mod_views_map
TAG POS=1 TYPE=A ATTR=ID:citysel_1
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapXCoor CONTENT=567
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapYCoor CONTENT=562
TAG POS=1 TYPE=A ATTR=TXT:Go
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=ID:l_567_t_562
WAIT SECONDS=2
TAG POS=1 TYPE=SPAN ATTR=TXT:Attack
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt6 CONTENT=15000
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt7 CONTENT=0
TAG POS=1 TYPE=SELECT ATTR=ID:modal_attack_knight CONTENT=%64646
TAG POS=1 TYPE=SPAN ATTR=TXT:March
WAIT SECONDS=0
'
WAIT SECONDS=4
TAG POS=1 TYPE=A ATTR=ID:mod_views_map
TAG POS=1 TYPE=A ATTR=ID:citysel_1
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapXCoor CONTENT=569
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapYCoor CONTENT=565
TAG POS=1 TYPE=A ATTR=TXT:Go
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=ID:l_569_t_565
WAIT SECONDS=2
TAG POS=1 TYPE=SPAN ATTR=TXT:Attack
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt6 CONTENT=15000
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt7 CONTENT=0
TAG POS=1 TYPE=SELECT ATTR=ID:modal_attack_knight CONTENT=%65707
TAG POS=1 TYPE=SPAN ATTR=TXT:March
WAIT SECONDS=0
'
WAIT SECONDS=4
TAG POS=1 TYPE=A ATTR=ID:mod_views_map
TAG POS=1 TYPE=A ATTR=ID:citysel_1
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapXCoor CONTENT=574
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapYCoor CONTENT=537
TAG POS=1 TYPE=A ATTR=TXT:Go
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=ID:l_574_t_537
WAIT SECONDS=2
TAG POS=1 TYPE=SPAN ATTR=TXT:Attack
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt6 CONTENT=15000
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt7 CONTENT=0
TAG POS=1 TYPE=SELECT ATTR=ID:modal_attack_knight CONTENT=%67600
TAG POS=1 TYPE=SPAN ATTR=TXT:March
WAIT SECONDS=0
'
WAIT SECONDS=4
TAG POS=1 TYPE=A ATTR=ID:mod_views_map
TAG POS=1 TYPE=A ATTR=ID:citysel_1
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapXCoor CONTENT=570
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapYCoor CONTENT=542
TAG POS=1 TYPE=A ATTR=TXT:Go
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=ID:l_570_t_542
WAIT SECONDS=2
TAG POS=1 TYPE=SPAN ATTR=TXT:Attack
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt6 CONTENT=15000
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt7 CONTENT=0
TAG POS=1 TYPE=SELECT ATTR=ID:modal_attack_knight CONTENT=%70411
TAG POS=1 TYPE=SPAN ATTR=TXT:March
WAIT SECONDS=0
'
WAIT SECONDS=4
TAG POS=1 TYPE=A ATTR=ID:mod_views_map
TAG POS=1 TYPE=A ATTR=ID:citysel_1
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapXCoor CONTENT=574
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapYCoor CONTENT=557
TAG POS=1 TYPE=A ATTR=TXT:Go
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=ID:l_574_t_557
WAIT SECONDS=2
TAG POS=1 TYPE=SPAN ATTR=TXT:Attack
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt6 CONTENT=15000
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt7 CONTENT=0
TAG POS=1 TYPE=SELECT ATTR=ID:modal_attack_knight CONTENT=%85449
TAG POS=1 TYPE=SPAN ATTR=TXT:March
WAIT SECONDS=0
'
WAIT SECONDS=4
TAG POS=1 TYPE=A ATTR=ID:mod_views_map
TAG POS=1 TYPE=A ATTR=ID:citysel_1
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapXCoor CONTENT=572
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapYCoor CONTENT=564
TAG POS=1 TYPE=A ATTR=TXT:Go
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=ID:l_572_t_564
WAIT SECONDS=2
TAG POS=1 TYPE=SPAN ATTR=TXT:Attack
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt6 CONTENT=15000
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt7 CONTENT=0
TAG POS=1 TYPE=SELECT ATTR=ID:modal_attack_knight CONTENT=%85450
TAG POS=1 TYPE=SPAN ATTR=TXT:March
WAIT SECONDS=0
'
WAIT SECONDS=4
TAG POS=1 TYPE=A ATTR=ID:mod_views_map
TAG POS=1 TYPE=A ATTR=ID:citysel_1
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapXCoor CONTENT=575
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapYCoor CONTENT=576
TAG POS=1 TYPE=A ATTR=TXT:Go
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=ID:l_575_t_576
WAIT SECONDS=2
TAG POS=1 TYPE=SPAN ATTR=TXT:Attack
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt6 CONTENT=15000
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt7 CONTENT=0
TAG POS=1 TYPE=SELECT ATTR=ID:modal_attack_knight CONTENT=%85451
TAG POS=1 TYPE=SPAN ATTR=TXT:March
WAIT SECONDS=0
'
WAIT SECONDS=4
TAG POS=1 TYPE=A ATTR=ID:mod_views_map
TAG POS=1 TYPE=A ATTR=ID:citysel_1
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapXCoor CONTENT=575
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapYCoor CONTENT=547
TAG POS=1 TYPE=A ATTR=TXT:Go
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=ID:l_575_t_547
WAIT SECONDS=2
TAG POS=1 TYPE=SPAN ATTR=TXT:Attack
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt6 CONTENT=15000
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt7 CONTENT=0
TAG POS=1 TYPE=SELECT ATTR=ID:modal_attack_knight CONTENT=%85452
TAG POS=1 TYPE=SPAN ATTR=TXT:March
WAIT SECONDS=0
'
WAIT SECONDS=4
TAG POS=1 TYPE=A ATTR=ID:mod_views_map
TAG POS=1 TYPE=A ATTR=ID:citysel_1
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapXCoor CONTENT=575
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:mapYCoor CONTENT=598
TAG POS=1 TYPE=A ATTR=TXT:Go
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=ID:l_575_t_598
WAIT SECONDS=2
TAG POS=1 TYPE=SPAN ATTR=TXT:Attack
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt6 CONTENT=15000
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:modal_attack_unit_ipt7 CONTENT=0
TAG POS=1 TYPE=SELECT ATTR=ID:modal_attack_knight CONTENT=%96957
TAG POS=1 TYPE=SPAN ATTR=TXT:March
WAIT SECONDS=1200
Pingpong
 
Posts: 3
Joined: Mon Jun 14, 2010 3:29 pm

Re: SyntaxError: can not parse macro line: ATTR=ID:mod_views_map

by Pingpong on Mon Jun 14, 2010 3:41 pm

To make it run I copied the macro into a txt file then renamed the file latest.iim , then copied this to a folder within the macros folder called newfolder and then loaded the file from there,Or I assume I loaded it, when I got to play the macro I get that error, can anybody advise me. To be fair I have never worked with macros before so it may well be something I'm doing wrong, Am I perhaps loading it incorrectly. I use xp pro and am using firefox Imacos , cant give you a version number as I have not recorded any macros and I'm wondering if thats were I'm going wrong do I need to "record" this 1st and if so how? Your help will be really appreciated as I'm now struggling to get any further, many thanks Rick
Pingpong
 
Posts: 3
Joined: Mon Jun 14, 2010 3:29 pm

Re: SyntaxError: can not parse macro line: ATTR=ID:mod_views_map

by Pingpong on Mon Jun 14, 2010 5:37 pm

Ok Its taken a while but I've worked this out myself, you cant just copy the data into an iim file you need first record a macro then paste the data in to create the version number and start script. So any other noobs hoping to copy a macro try that 1st. :)
Pingpong
 
Posts: 3
Joined: Mon Jun 14, 2010 3:29 pm

Re: SyntaxError: can not parse macro line: ATTR=ID:mod_views_map

by Tom, Tech Support on Mon Jun 21, 2010 6:57 am

One other thing to note here, you said the macro started with:

Code: Select all
ATTR=ID:mod_views_map
TAG POS=1 TYPE=A ATTR=ID:citysel_1
WAIT SECONDS=2

ATTR is a parameter of the TAG command, and hence can only appear on a line starting with TAG, and not as a line by itself. This is why you were receiving a syntax error. It looks like you might not have copied the entire macro text the first time you tried this.
Regards,

Tom, iMacros Support
Tom, Tech Support
 
Posts: 3079
Joined: Mon May 31, 2010 9:59 am


Return to General Support & Discussions

Who is online

Users browsing this forum: No registered users and 2 guests

Website Monitoring