Imacros help!

Joined
Dec 16, 2009
Messages
5
Reaction score
0
So I'm trying to add an if/else conditional statement in my .js file in imacros.
What I'm trying to accomplish is if it finds the word "In Battle!" anywhere on the page to run a certain macro.

This is what I have now,

Code:
iimPlay("CODE:TAB T=1\nURL GOTO=InsertLinkhere\nTAG POS=1 TYPE=A ATTR=TXT:In<SP>battle!* EXTRACT=TXT");
var G_Extract=iimGetLastExtract(1);
if (G_Extract=="In<SP>Battle!*")
{
iimPlay ("Battle.iim")
}
else
  {
  iimPlay ("Continue.iim")
  }

Any help would be appreciated!
If you got questions or need me to further explain, Let me know!
 
Back
Top