Adblock breaks this site

Colour Detection

Discussion in 'Scar/Simba Help' started by Innuendo, Oct 20, 2010.

  1. Innuendo

    Innuendo Active Member
    Banned

    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0
    Colour Detection

    Okay I need SCAR to detect a colour and instantly click it. I have no clue how to use SCAR so if someone could be descriptive when posting how to do it. I'd be very grateful.
     
  2. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    Colour Detection

    Code:
    program Colour;
    
    var
      x, y : integer;
    begin
      If FindColor(x, y, COLOR_HERE, 0, 0, 500, 500) Then
      begin
        movemouse(x, y);
        clickmouse(x, y, true);
      end;
    end.
    That would do it assuming the client dimensions are 500x500. Replace COLOR_HERE with the color.
     
  3. Innuendo

    Innuendo Active Member
    Banned

    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0
    Colour Detection

    That doesn't click anything. Still need help.
     
  4. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    Colour Detection

    Post a picture of what you're trying to find... would be more easy.
     
  5. Innuendo

    Innuendo Active Member
    Banned

    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0
    Colour Detection

    I need to be able to click only the lion when ever it appears.

    [​IMG]
     
  6. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    Colour Detection

    Try this...
    Code:
    program Colour;
    
    var
      x, y : integer;
    begin
      If FindColor(x, y, 3037874, 0, 0, 750, 750) Then
      begin
        movemouse(x, y);
        clickmouse(x, y, true);
      end;
    end.
    Remember to drag the cross to specify the client(it's on the toolbar).
     
  7. Innuendo

    Innuendo Active Member
    Banned

    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0
    Colour Detection

    I dragged the cross on the client still then press the green play button, then I just get a message saying successfully executed without clicking.
     
  8. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    Colour Detection

    Link to the game? Then I can make it fully working.
     
  9. Innuendo

    Innuendo Active Member
    Banned

    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0
    Colour Detection

    Pm'ed you with all the details.
     
  10. Innuendo

    Innuendo Active Member
    Banned

    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0
    Colour Detection

    Want to thank cazax for his great help. He got it all working :D

    This may be closed.
     
< Help with FindColour() | imposible get money back if... $$$ help >


 
 
Adblock breaks this site