Page 1 of 1

if you find this word then press this button IMACROS CODE?

Posted: Tue Jul 17, 2018 10:48 am
by dicekid
hey, first sorry if this is the wrong section

i need a code that will look for the word "match" in a webpage, and if there is any then initiate this line

TAG POS=1 TYPE=BUTTON ATTR=TXT:Bet

can anyone make me this code

thanks in advance

Re: if you find this word then press this button IMACROS COD

Posted: Thu Nov 08, 2018 2:08 pm
by access2vivek
dicekid wrote: i need a code that will look for the word "match" in a webpage, and if there is any then initiate this line
TAG POS=1 TYPE=BUTTON ATTR=TXT:Bet
I am assuming that the word "match" is in a span. You can change it to DIV or whatever element the text appears in. Here is the code in JavaScript.

Code: Select all

var code="CODE:";
code+="SET !TIMEOUT_STEP 1\n";
code+="SET !ERRORIGNORE YES\n";
code+="TAG POS=1 TYPE=SPAN ATTR=TXT:*match* EXTRACT=TXT\n";
iimPlay(code);

if(iimGetLastExtract()!="#EANF#")
   iimPlayCode("TAG POS=1 TYPE=BUTTON ATTR=TXT:Bet");