1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

imacros FAIL_IF_FOUND error

Discussion in 'HTML & JavaScript' started by mo7tarif1997, Jan 28, 2017.

  1. mo7tarif1997

    mo7tarif1997 Newbie

    Joined:
    Dec 1, 2015
    Messages:
    4
    Likes Received:
    0
    VERSION BUILD=8970419 RECORDER=FX
    TAB T=1
    TAG POS=1 TYPE=DIV ATTR=id:email
    TAG POS=1 TYPE=DIV ATTR=CLASS:email
    TAG POS=1 TYPE=DIV ATTR=TXT:email
    TAG POS=1 TYPE=DIV ATTR=style:eek:utline&&ATTER:data-clipboard-target:#email .email


    [​IMG]

    PLEAS CORRECT FOR ME THE CODE
     
  2. mynameisfrankenstein

    mynameisfrankenstein Regular Member

    Joined:
    Apr 2, 2015
    Messages:
    431
    Likes Received:
    344
    Gender:
    Male
    Location:
    BC, Canada
    macro.js
    Code:
    var ret;
    
    for (var i = 1; i <= 500; i++) {
    
    
    	iimPlay("go.iim");
    
    
    
       // search for the word "YOLO" in source of the page
       
       ret = iimPlay('CODE:SEARCH SOURCE=TXT:"YOLO" IGNORE_CASE=YES');
    
    
    
       // if find the word to play macro1
    
       if (ret == 1) {   // Text was found
          ret = iimPlay("found.iim");
       }
    
    
    
       // if it's not found, wait and continues loop
    
       else if (ret != -101) {
          iimPlay("CODE:WAIT SECONDS=1")
       }
     
    }