Results 1 to 5 of 5

Thread: helppppp

  1. #1
    Join Date
    Mar 2007
    Posts
    93
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default helppppp

    ok guys i cant figure out how to make my scar find a color move the mouse and click the color i dont understand y mmouse doesnt work as well as mouse and y did you guys take out findmscolortol??? i have no clue what im doing now im tryin to make a simple script for dodian and there arent any simple functions in srl ne more... some one please help me out tell me how to make it find and move and click...

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Now instead of using 'findmscolortol' we manually use the coordinates for the main screen.
    Which are:
    MSX1, MSY1

    MSX2, MSY2

    So to find a color on the main screen and use Mouse/MMouse it'd look like this:

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}


    var
      x, y : Integer;

    begin
      if FindColorSpiralTolerance(x, y, color, MSX1, MSY1, MSX2, MSY2, tolerance) then
        MMouse(x, y, 0, 0);
          //will move mouse to the color

      if FindColorSpiralTolerance(x, y, color, MSX1, MSY1, MSX2, MSY2, tolerance) then
        Mouse(x, y, 0, 0, True);
          //will click the color(True will left click; False will right click)
    end.
    (Of course enter your color and tolerance integers into that)

  3. #3
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    1 more thing, FindColorSpiralTolerance starts scanning from x ,y, so if you want to find object what's nearest to player do like this

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
     
     var
      x, y : Integer;
     
    begin
      x := MSCX;
      y := MSCY;
      if FindColorSpiralTolerance(x, y, color, MSX1, MSY1, MSX2, MSY2, tolerance) then
      begin
        MMouse(x, y, 0, 0, True);
        if IsUpText('hop d') then//example of Chop down
          Mouse(x, y, 0, 0, True);
      end;
    end.
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  4. #4
    Join Date
    Mar 2007
    Posts
    93
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok it works but how do i adjust the mouse speed as mmouse and mouse goes extremely slow for me...

  5. #5
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    MouseSpeed := 15;
    Hup Holland Hup!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. i need helppppp
    By sk8terbitu in forum News and General
    Replies: 7
    Last Post: 01-12-2009, 12:45 AM
  2. I am new, need help, PLease HELPPPPP!!!!!!!!!
    By samuil404 in forum OSR Help
    Replies: 4
    Last Post: 01-22-2008, 03:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •