Results 1 to 6 of 6

Thread: quick noobie question

  1. #1
    Join Date
    Jul 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default quick noobie question

    I get an error when trying to run this script.
    I think I'm missing a really simple thing, i just cantfind it.
    SCAR Code:
    program New;

    var
     WillowLog2: integer;

    procedure LoadBitmap;
    begin
     P := BitmapFromString(18, 21, 'z78DA7373C3070C30801B9580' +
           '01C5809E76116FA3015501257691E71E4AEC1AD5355474D1331D0' +
           'E4EBB689D97A95B1EBA51158CDA356AD760B08BD60000B0BF120B' +
           '');
    end;

    procedure FBitmap;
    var
     x, y :integer;




     if FindBitmapToleranceIn(P, x, y, 251, 284, 367, 306, 25); then
    begin
    WriteLn('Found the letter P');
      end else
      begin
        WriteLn('Color Not Found. :/ Sorry');
      end;
    end;

  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    What is the point of this script? Maybe if I knew I cound find out whats wrong..


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  3. #3
    Join Date
    Nov 2006
    Location
    In an Amish Paradise
    Posts
    729
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program New;

    var
     WillowLog2, P: integer; //P is also a variable

    procedure LoadBitmap;
    begin
     P := BitmapFromString(18, 21, 'z78DA7373C3070C30801B9580' +
           '01C5809E76116FA3015501257691E71E4AEC1AD5355474D1331D0' +
           'E4EBB689D97A95B1EBA51158CDA356AD760B08BD60000B0BF120B');
    end;

    procedure FBitmap;
    var
     x, y :integer;
    begin
      if FindBitmapToleranceIn(P, x, y, 251, 284, 367, 306, 25) then
      begin
        WriteLn('Found the letter P');
      end else
        WriteLn('Color Not Found. :/ Sorry');
    end;

    Begin   // this is main loop
    LoadBitmap;
    FBitmap;
    end.

    Here look into some basic scripting Tuts

    ~Stupedspam

  4. #4
    Join Date
    Jul 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it just searches a bitmap, and returns if its available or not. (Found the Letter P) or (Color not found)

  5. #5
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Supedspam solved it, what/where is this P? on RS?


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  6. #6
    Join Date
    Jul 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol, stupedspam posted that the same time that i posted it.

    Thanks, I was searching for a text on a website.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  2. Quick question..
    By Main in forum OSR Help
    Replies: 21
    Last Post: 12-16-2008, 06:49 AM
  3. settimeout error. (noobie question)
    By shadowpwner in forum OSR Help
    Replies: 1
    Last Post: 08-14-2007, 11:27 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
  •