Search found 8 matches

by Lucas Rodrigues
Thu Oct 30, 2014 5:23 pm
Forum: iMacros for Firefox
Topic: EVAL/ EXTRACT/ if match
Replies: 0
Views: 2080

EVAL/ EXTRACT/ if match

I'm tryng to search for multiple words: 1º, 2º, 3º, 4º, 5º, if I found one of them I want to go to http://www.nabrpg.com/index.php?p=attack&bot=1//2/3/4/5 << the right number depends of the word founded, example: If I found 1º, go to http://www.nabrpg.com/index.php?p=attack&bot=1 If I found 2º, go t...
by Lucas Rodrigues
Thu Oct 30, 2014 4:29 pm
Forum: iMacros for Firefox
Topic: EVAL Question.
Replies: 4
Views: 1546

Re: EVAL Question.

Man, I'm sorry, I checked again and now is working, now I want to make that with five different situations. TAG POS=1 TYPE=B ATTR=TXT:5º EXTRACT=TXT SET !VAR1 EVAL("var s=\"{{!EXTRACT}}\"; if(s.match(\"5º\")){url=\"http://www.nabrpg.com/index.php?p=attack&bot=5\";} else url=\"http://www.nabrpg.com/i...
by Lucas Rodrigues
Thu Oct 30, 2014 4:07 pm
Forum: iMacros for Firefox
Topic: EVAL Question.
Replies: 4
Views: 1546

Re: EVAL Question.

Well, is not working, it's simply logout the game, if I give you some an accout you can try for me?


EDIT: Worked, was a mistake.
by Lucas Rodrigues
Tue Oct 28, 2014 11:08 am
Forum: iMacros for Firefox
Topic: EVAL Question.
Replies: 4
Views: 1546

EVAL Question.

I want to make: If the EXTRACT is true (have the text "5º"), then goes to URL=http://www.nabrpg.com/index.php?p=attack&bot=5, if isn't, goes to URL=http://www.nabrpg.com/index.php?p=home Made so far: VERSION BUILD=8850919 RECORDER=FX TAB T=1 URL GOTO=http://www.nabrpg.com/index.php?p=home WAIT SECON...
by Lucas Rodrigues
Tue Oct 28, 2014 1:02 am
Forum: iMacros for Firefox
Topic: How to do If/Else/Then - EVAL
Replies: 6
Views: 2531

Re: How to do If/Else/Then - EVAL

-.-'
by Lucas Rodrigues
Sun Oct 26, 2014 8:42 pm
Forum: iMacros for Firefox
Topic: How to do If/Else/Then - EVAL
Replies: 6
Views: 2531

Re: How to do If/Else/Then - EVAL

You just click on the HTML Element stating your Phrase to record it, and you add "EXTRACT=TXT" at the end of the Statement. Then you use 'EVAL()' with 'substr()' to retrieve the "1/2/3/4/5" Value. Find a Site in your Language explaining how to use the JavaScript String Functions. And you reuse that...
by Lucas Rodrigues
Sun Oct 26, 2014 5:17 pm
Forum: iMacros for Firefox
Topic: How to do If/Else/Then - EVAL
Replies: 6
Views: 2531

Re: How to do If/Else/Then - EVAL

Use 'EXTRACT' to extract the "Para atacar, clique no nº botão." Phrase, then apply 'EVAL()' to your '!EXTRACT' with 'substr()' to isolate "n" and reuse this "n" Value for 'POS={{n}}'... I didn't understand, as i sad, my english is sucks, give me a didactic and full explanation, please. >> You can d...
by Lucas Rodrigues
Sun Oct 26, 2014 4:06 pm
Forum: iMacros for Firefox
Topic: How to do If/Else/Then - EVAL
Replies: 6
Views: 2531

How to do If/Else/Then - EVAL

>> Hello, I'm Lucas, I'm brazilian and my english is sucks and this is why I can't simply read tutorials and do what I want right now. << I don't understand this things of EVAL/Javascript, and I understand just a little of Imacros, this is why: >> I NEED YOUR HELP. << There's a page, it shows five "...