Colour Detection

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

Colour Detection
  1. Unread #1 - Oct 20, 2010 at 5:26 AM
  2. Innuendo
    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0

    Innuendo Active Member
    Banned

    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.
     
  3. Unread #2 - Oct 20, 2010 at 4:16 PM
  4. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    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.
     
  5. Unread #3 - Oct 20, 2010 at 9:31 PM
  6. Innuendo
    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0

    Innuendo Active Member
    Banned

    Colour Detection

    That doesn't click anything. Still need help.
     
  7. Unread #4 - Oct 22, 2010 at 6:23 PM
  8. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    Colour Detection

    Post a picture of what you're trying to find... would be more easy.
     
  9. Unread #5 - Oct 22, 2010 at 7:23 PM
  10. Innuendo
    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0

    Innuendo Active Member
    Banned

    Colour Detection

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

    [​IMG]
     
  11. Unread #6 - Oct 22, 2010 at 7:45 PM
  12. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    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).
     
  13. Unread #7 - Oct 23, 2010 at 2:55 AM
  14. Innuendo
    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0

    Innuendo Active Member
    Banned

    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.
     
  15. Unread #8 - Oct 23, 2010 at 5:54 AM
  16. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    Colour Detection

    Link to the game? Then I can make it fully working.
     
  17. Unread #9 - Oct 23, 2010 at 6:37 AM
  18. Innuendo
    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0

    Innuendo Active Member
    Banned

    Colour Detection

    Pm'ed you with all the details.
     
  19. Unread #10 - Oct 23, 2010 at 6:24 PM
  20. Innuendo
    Joined:
    Sep 27, 2010
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0

    Innuendo Active Member
    Banned

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site