how to extract data to var1

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
new movies
Posts: 44
Joined: Thu May 26, 2011 8:14 pm

how to extract data to var1

Post by new movies » Sun Dec 01, 2013 12:18 pm

made an imacros this

Code: Select all

set !errorignore yes
TAG POS=1 TYPE=SPAN ATTR=CLASS:tlActorText EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
if the extract data is this
hello
this
is
extracted
data.
then when i use var1 to fill the data it comes this
this is extracted data.
Means enter is replacing by <SP>
i want to do extract and post as it is.
new movies
Posts: 44
Joined: Thu May 26, 2011 8:14 pm

Re: how to extract data to var1

Post by new movies » Wed Dec 04, 2013 11:45 am

anybody?
Tom, Tech Support
Posts: 3570
Joined: Mon May 31, 2010 4:59 pm

Re: how to extract data to var1

Post by Tom, Tech Support » Thu Dec 12, 2013 3:12 pm

Hi new movies,

Not sure, the following works just fine for me, so it must be related to how the page is coded specifically.

Code: Select all

TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://demo.imacros.net/Automate/Extract2
TAG POS=1 TYPE=SPAN ATTR=CLASS:bdytxt&&TXT:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
TAB OPEN
TAB T=2
URL GOTO=http://demo.imacros.net/Automate/TestForm1
TAG POS=1 TYPE=TEXTAREA FORM=ID:demo ATTR=NAME:Remarks CONTENT={{!VAR1}}
Regards,

Tom, iMacros Support
Post Reply