Help with a semi-basic command.

Discussion in 'Scar/Simba Help' started by Akkida, Aug 4, 2007.

Help with a semi-basic command.
  1. Unread #1 - Aug 4, 2007 at 10:36 PM
  2. Akkida
    Referrals:
    0

    Akkida Guest

    Help with a semi-basic command.

    If I wanted to make a simple script that moves the cursor to and clicks on the color you tell it to. What would it look like?
     
  3. Unread #2 - Aug 5, 2007 at 4:47 AM
  4. HISTORY
    Referrals:
    0

    HISTORY Guest

    Help with a semi-basic command.

    well a detectable way is
    Code:
    const 
      color=00000;//the color to click
    
    var
      x,y : integer;
    begin
        if(FindColor(x,y,color,0,0,1027,1027))then
      begin
        moveMouse(x,y);
        wait(300);
        clicmouse(x,y,true);
      end;
    end.
    
    if you want it for rs, DO NOT use that, it's detectable.
     
  5. Unread #3 - Aug 5, 2007 at 7:32 PM
  6. crossback7
    Joined:
    Jun 12, 2007
    Posts:
    202
    Referrals:
    0
    Sythe Gold:
    0

    crossback7 Active Member

    Help with a semi-basic command.

    This will click on the color once. PM me if you want to make one that will keep clicking until your inventory is full or let me know if it's an autofigher.

    Code:
    Program ClickColor;
    
    Procedure ClickTheColor;
    
    var
    x,y : integer;
    
    begin
      [B]if[/B] FindColorSpiralTolerance(x,y,yourcolorhere,MSX1,MSY1,MSX2,MSY2,10) then
            begin
               Mouse(x,y,2,2);
            end else
              begin
                 TerminateScript;
             end;
    end;
    
    
    begin
      SetupSrl;
      ActivateClient;
      ClickTheColor;
    end.
     
< Could a person who knows alot about SCAR help me out? | plz help been asking for like 3 weeks >

Users viewing this thread
1 guest


 
 
Adblock breaks this site