UserName.indexOf('@');
It does not work in EVAL statement
What is the correct format?
Find position of '@'
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
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
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
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
Find position of '@'
Available for custom iim, javascript iMacros scripts
- thecoder2012
- Posts: 446
- Joined: Sat Aug 15, 2015 5:14 pm
- Location: Internet
- Contact:
Re: Find position of '@'
try UserName.indexOf(String.fromCharCode(64));techimac wrote:UserName.indexOf('@');
It does not work in EVAL statement
What is the correct format?
Example:
Code: Select all
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:UserName ATTR=NAME:UserName EXTRACT=TXT
SET newdata EVAL("var s = '{{!EXTRACT}}';s.indexOf(String.fromCharCode(64));")
PROMPT {{newdata}}
Join 9kw.eu Captcha Service now and let your iMacros continue downloads and scripts while you sleep. - Custom iMacros? Contact me!
Re: Find position of '@'
Code: Select all
set !extract aa@a@aa
SET newdata EVAL("var s = '{{!EXTRACT}}';s.indexOf(String.fromCharCode(64));")
PROMPT {{newdata}}
I forgot what i was doing but this worked
will keep it for future
Available for custom iim, javascript iMacros scripts