Problems wuth imacros

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
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
dripservice
Posts: 2
Joined: Mon Dec 16, 2013 4:25 pm

Problems wuth imacros

Post by dripservice » Mon Dec 16, 2013 4:33 pm

Hello please help me

Code: Select all

SET !EXTRACT_TEST_POPUP NO
TAB T=1
URL GOTO=http://www.fakemailgenerator.com/

TAG POS=1 TYPE=SPAN ATTR=ID:cxtEmail EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
I want to save data in VAR1
I get the word out to @
example
TEST@gmail.com
How do I copy a variable in VAR1 only word TEST without @gmail.com
Thank you
Best regards
User avatar
bobis
Posts: 364
Joined: Sat Sep 11, 2010 3:34 pm
Contact:

Re: Problems wuth imacros

Post by bobis » Mon Dec 16, 2013 9:13 pm

try this

Code: Select all

TAB T=1
URL GOTO=http://www.fakemailgenerator.com/

TAG POS=1 TYPE=SPAN ATTR=ID:cxtEmail EXTRACT=TXT

set !var1 EVAL("var s=\"{{!EXTRACT}}\"; s.replace(\"@gmail.com\",\"\");s;")
Get Best iMacros scripts at http://imacrosbot.com/
Post Reply