Hum..., you would first need to follow up on your previous Thread(s) if you hope for (other) (Advanced) Users to help you (again), I would think...nathanjame wrote:Dear all,
I'm new with JavaScript, so can please help me with this macro?
I need to reload URL (in this case refresh same page) until I don't have word beginning with capitalized A, B or C.
I can't find the way to create loop inside EVAL.
Can somebody help me please?
Thank you!
Code: Select all
VERSION BUILD=7401110 RECORDER=FX TAB T=1 URL GOTO=http://watchout4snakes.com/CreativityTools/RandomWord/RandomWord.aspx SET !EXTRACT_TEST_POPUP NO TAG POS=1 TYPE=SPAN ATTR=ID:tmpl_main_lblWord EXTRACT=TXT SET !VAR1 EVAL("var re = /^[A || B || C]/gi; var str = \"{{!EXTRACT}}\"; while(str.search(re) == -1) {URL GOTO=http://watchout4snakes.com/CreativityTools/RandomWord/RandomWord.aspx}") PROMPT {{!EXTRACT}}
+ (F)CIM...! (Read my Sig...)
=> Applies to your previous Thread as well, Reason I had not reacted at that time...
(I would honestly be surprised if you are (still) using v7.40 for FF, unless you (re)installed that maybe 8 years old Version related to your previous Thread, but if you are indeed still using v7.40 or have been using iMacros since that Version, you should be able to answer most Threads on the Forum yourself by now, while your "Misconception" in this current one is a very Newbie one... and has probably been answered more than 100 times on the Forum already... )