Page 1 of 1

ignore apostrophe as a comment

Posted: Wed Oct 12, 2011 7:59 pm
by dombrorj
I have an imacro script that has an apostrophe in the text of the CONTENT field. I'd like the script to input the content, including the apostrophe, into the form. What is happening instead is the apostrophe in the text has created a comment in the remainder of the line. So for example...

What's<SP>my<SP>name

anything after What' is now a comment, and being ignored.

Is there a way to un-comment the comment?

Re: ignore apostrophe as a comment

Posted: Thu Oct 20, 2011 1:23 pm
by Hannes, Tech Support
Put the content into quotation marks:

Code: Select all

VERSION BUILD=7501723
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.amazon.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:site-search ATTR=ID:twotabsearchtextbox CONTENT="Here's an apostrophe' (two, actually)"

Re: ignore apostrophe as a comment

Posted: Thu Oct 20, 2011 2:10 pm
by dombrorj
Thanks! :D

Re: ignore apostrophe as a comment

Posted: Sun Oct 30, 2011 11:11 pm
by Tom, Tech Support
Hello dombrorj,

Are you using the built-in editor of iMacros for Firefox? If so, you should know that even though the syntax highlighting shows the text as a comment, only lines beginning with an apostrophe are ignored on playback. Your macro code would have worked just the way you had it, even without surrounding the content with quotation marks.

Re: ignore apostrophe as a comment

Posted: Mon Oct 31, 2011 7:33 pm
by dombrorj
Tom, iOpus wrote:Hello dombrorj,

Are you using the built-in editor of iMacros for Firefox? If so, you should know that even though the syntax highlighting shows the text as a comment, only lines beginning with an apostrophe are ignored on playback. Your macro code would have worked just the way you had it, even without surrounding the content with quotation marks.
Thanks Tom, come to think of it I don't think I actually tested the macro out. I was coding by hand using the built in editor. Thanks for letting me know!