Results 1 to 3 of 3

Thread: GetColor problem

  1. #1
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default GetColor problem

    Keep getting -1 as the color.

    Code:
    getmousepos(x,y);
    a:=getcolor(x,y);
    writeln('Color = '+IntToStr(a));
    Color = -1 ?

    (Not using SMART)

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

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

    Default

    Not sure...
    Post the whole script/funtion please?

    And run this

    SCAR Code:
    program New;
    var
      a, x, y : integer;
    begin
      repeat
        getmousepos(x,y);
        a:=getcolor(x,y);
        writeln('Color = '+IntToStr(a));
        wait(10);
      until false;
    end.
    Edit: and reply if you still get -1
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  3. #3
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Its working for now, reloaded Scar and fiddled about with some vista apperance options. Will see how it goes.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. GetColor
    By FortAsh in forum OSR Help
    Replies: 5
    Last Post: 01-26-2009, 08:07 PM
  2. What is the problem?
    By Raskolnikov in forum OSR Help
    Replies: 4
    Last Post: 12-07-2007, 05:09 PM
  3. Need some advice with getcolor command
    By Negaal in forum OSR Help
    Replies: 15
    Last Post: 07-13-2007, 05:41 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
  •