Results 1 to 3 of 3

Thread: One last question, I hope!

  1. #1
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default One last question, I hope!

    SCAR Code:
    If FindColorTolerance(x, y, 5005959, MIX1, MIY1, MIX2, MIY2, 10) then
    begin
    Xx:=x; Xy:=y;
    If (GetMousePos(x, y) > Xx, Xy)) Then
    //Stuff Here

    Say I wanted to do something like that. How would I go about it? That is giving me this error:

    Line 55: [Error] (16072:27): Type mismatch in script
    SCAR Code:
    If FindColorTolerance(x, y, 5005959, MIX1, MIY1, MIX2, MIY2, 10) then
    begin
    Xx:=x; Xy:=y;
    If (GetMousePos(x, y) > (Xx, Xy)) Then

    If I do that, it tells me it wants a close round, which I don't understand why. Anyways, could anyone fix that up for me? .

  2. #2
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function Functionname: Boolean;
    var
      x, y, x2, y2: Integer;
    begin
      if (FindColorTolerance(x, y, 5005959, MIX1, MIY1, MIX2, MIY2, 10)) then
      begin
        GetMousePos(x2, y2);
        if (x <> x2) or (y <> y2) then
        begin
          //Stuff Here
        end;
      end;
    end;

  3. #3
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Timer. Got it working .

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Quick question, I hope.
    By Sandstorm in forum OSR Help
    Replies: 3
    Last Post: 10-25-2008, 04:00 AM
  2. Quick simple question, I hope
    By BKNYKavkaz in forum OSR Help
    Replies: 10
    Last Post: 05-02-2008, 02:38 AM
  3. Abandon Hope
    By timtag1190 in forum Blogs and Writing
    Replies: 0
    Last Post: 12-29-2006, 04:37 AM

Posting Permissions

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