Please help with 3 line EVAL script(noob ques)

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, 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.

Please help with 3 line EVAL script(noob ques)

by danny123 on Wed Aug 31, 2016 2:27 am

VERSION BUILD=9030808 RECORDER=FX
FIREFOX 48.0.2
Windows 8.1
Demos working


Please help with this 3 line script

script does
1.click on handle->Website generate 3 random words
2.check if any of the words match "lucky"
3.Yes->stop macro,No->Loop(clck on handle again,continue till words found)
Note:Sorry,i dont have the exact URL

first 2 lines working fine butI cant figure the syntax of the last line(hence i wrote in pseudo code):


Code: Select all
TAG POS=1 TYPE=IMG ATTR=SRC:http://static.generator23.com/Turnhandle.gif
TAG POS=1 TYPE=P ATTR=TXT:Your words are<SP>*<SP>for now. EXTRACT=TXT
SET !VAR1 EVAL("var s=\"{{!EXTRACT}}\", if s includes "lucky" ,break macro;else LOOP")


Any help would be appreciated.
danny123
 
Posts: 1
Joined: Wed Aug 31, 2016 1:46 am

Return to iMacros for Firefox

Who is online

Users browsing this forum: No registered users and 11 guests

-->