Results 1 to 3 of 3

Thread: didred click

  1. #1
    Join Date
    Oct 2007
    Location
    If (Online) then Loc := ('On comp') else Loc := ('Somewhere else!');
    Posts
    2,020
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default didred click

    is that stuffed up again? doesnt seem to reconise no longer if it did or didnt

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Try this, I updated both the orange and red colors and got the colors from several browsers and client refreshes, it's working for me

    Simba Code:
    function DidClick(Red: Boolean; Time: integer): boolean;
    var
      TimeOut, x, y, w, h, R, O: integer;
      B: TBox;
    begin
      GetMousePos(x, y);
      GetClientDimensions(w, h);
      B := IntToBox(x - 20, y - 20, x + 20, y + 20);
      if B.x1 < 0 then B.x1 := 0;
      if B.y1 < 0 then B.y1 := 0;
      if B.x2 > w then B.x2 := w;
      if B.y2 > h then B.y2 := h;
      TimeOut := GetSystemTime + Time;
      while (GetSystemTime < TimeOut) do
      begin
        R := CountColorTolerance(10915, B.x1, B.y1, B.x2, B.y2, 2);//Red (Orange = 4 to 8)
        O := CountColorTolerance(1623784, B.x1, B.y1, B.x2, B.y2, 2);//Orange/Yellow (max red = 52)
        if Red then
        begin
          Result := (R > 32) and (O < 5);
          if (O > 8) then
            Exit;
        end else
        begin
          Result := (O > 8);
          if (R > 52) then
            Exit;
        end;
        if Result then
          Exit;
      end;
    end;
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    This is fixed in the most recent version.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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