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

Need your help in imacros plugin firefox

Discussion in 'C, C++, C#' started by saurabh82, Nov 12, 2013.

  1. saurabh82

    saurabh82 BANNED BANNED

    Joined:
    Sep 27, 2013
    Messages:
    1,227
    Likes Received:
    131
    Code:
    [FONT=Monaco]var ret;[/FONT]
    
    [FONT=Monaco]for (var i = 1; i <= 999999; i++) {[/FONT]
    [FONT=Monaco]  iimPlay("macro1")[/FONT]
    
    [FONT=Monaco]   // 1) search for the word in source of the page i run it[/FONT]
    [FONT=Monaco]   ret = iimPlay('CODE:SEARCH SOURCE=TXT:"cool" IGNORE_CASE=YES');[/FONT]
    
    [FONT=Monaco]   // 2)if it find the word to play macro2[/FONT]
    [FONT=Monaco]   if (ret == 1) {   // Text was found[/FONT]
    [FONT=Monaco]      ret = iimPlay("macro2");[/FONT]
    [FONT=Monaco]   }[/FONT]
    [FONT=Monaco]   // 3)if it will not find the word to play macro1  [/FONT]
    [FONT=Monaco]   else if (ret != -101) {[/FONT]
    [FONT=Monaco]      ret = iimPlay("macro1");[/FONT]
    [FONT=Monaco]   }[/FONT]
    
    [FONT=Monaco]   if (ret == -101) {   // User clicked the Stop button[/FONT]
    [FONT=Monaco]      break;[/FONT]
    [FONT=Monaco]   }[/FONT]
    [FONT=Monaco]}[/FONT]
    this is the code when it find the word cool then go onto macro 2 if it doesnot then play macro 1
    Now when it searches the word cool i got this element waiting 6 and it waits for 6 seconds to find the word cool.
    I dont want to wait how can i do that.
    Many thanks
    Sudeep
    here is the screenshot
    21oa7ip.png
     
  2. saurabh82

    saurabh82 BANNED BANNED

    Joined:
    Sep 27, 2013
    Messages:
    1,227
    Likes Received:
    131
    anybody know a little bit of javascript?
     
  3. saurabh82

    saurabh82 BANNED BANNED

    Joined:
    Sep 27, 2013
    Messages:
    1,227
    Likes Received:
    131
    anybody?
    no one has little knowledge of javascript in imacros?
     
  4. saurabh82

    saurabh82 BANNED BANNED

    Joined:
    Sep 27, 2013
    Messages:
    1,227
    Likes Received:
    131
    no one has the answer?