Results 1 to 16 of 16

Thread: Can't find out what is wrong with bitmap search

  1. #1
    Join Date
    Oct 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Can't find out what is wrong with bitmap search

    About time I figured out what the problem was, over 15 posts.

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

    Default

    You become a SRL Junior Member by spending 7 days as registree and having 10 posts.
    To get SRL Member, you require to create a script with all the standards that are expected, your application will be voted apon.

    With your script, what are you actually trying to do?

    You could use FindBitmapToleranceIn and see if that works.

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

  3. #3
    Join Date
    Oct 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im not exactly trying to do anything but get it to find the bitmap and then give me coordinates of it, and if I find they are correct, then just go off of that and acutually make the script. It looks for the word Username after you push existing user.

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

    Default

    Use the tolerance.

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

  5. #5
    Join Date
    Oct 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I tried that earlier. I dont have to make everything but the word username black do I? Also if I do GetColor(x,y), how do I make it writeln(IntToStr(The result)). How do I use the result from it?

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

    Default


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

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

    Default

    Try this...
    Code:
    if(FindBitmapToleranceIn(BitUsername,x,y,MSX1,MSY1,MSX2,MSY2,10) or FindBitmapToleranceIn(BitPassword,px,py,MSX1,MSY1,MSX2,MSY2,10)) then
    Parameter: FindBitmapToleranceIn(Bitmap, x, y, x1, y1, x2, y2, Tol)

    Hope this helps,
    ~Stupedspam

  8. #8
    Join Date
    Oct 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Still doesn't work, im so confused. Here is the bitmap if any are thinking I did wrong.

    http://i149.photobucket.com/albums/s...r/Username.jpg

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

    Default

    Heres what I changed...

    SCAR Code:
    BitUsername := BitmapFromString(70, 1, 'beNpNjmsKhDAMhEW8lqAo1ESMW0n' +
           'XB+qPvf8Vtjpr3WL4CJlhYMJW3eyP3yRJ2jQvw/YvM2IBQcZd1i0y' +
           '0qu/dNhVTXlhgH8kiXv4wYnAYR5U13X7PH11y+B2gCOad68/RN4iU' +
           '9eNsfd7JVBBZEHI4zFzAgJyjL8=');
    if (FindBitmapToleranceIn(BitUsername,x,y,0,0,1230,767,10)

    When you make a bitmap take 1-5 pixels by 15-100 pixels

    Hope this helps,
    ~Stupedspam

  10. #10
    Join Date
    Oct 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What do you mean? I dont understand what your saying.

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

    Default

    Remember, you have to use BITMAP'S, that is BMP files! Not JPG.

    When creating bitmaps, they need to be small, not the entire word Username, make it Us with just the top of the letters.

    fsfhunter, are you trying to make an autologin?

    Try this instead..
    SCAR Code:
    program New;
    {.include SRL\SRL.scar}

    var
    x,y,UserDTM:Integer;

    procedure Test;
    begin
      UserDTM:= DTMFromString('78DA6354606460E000622C0026CA28C488C48' +
           '380FFFFFF63AA6127A04618C8E224A04614D33D186AC481ACFFA8' +
           '6E0D0A89C35443C8CD3240160B116A08B9599EB0DF011FB11B38');
      if(FindDTM(UserDTM,x,y,MSX1,MSY1,MSX2,MSY2))then
      begin
        Writeln('Found Username DTM at X: '+IntToStr(x)+' Y: '+IntToStr(y));
      end;
    end;

    begin
      SetupSRL;
      FindRS;
      Test;
    end.

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

  12. #12
    Join Date
    Oct 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea I am but this is more of a learning experience, not going to use it later. It is BMP file, photoshack automatically converts it into jpg. I triwed doing that with just the top of the letters US but it still doesn't seem to work. I'm just completely stuck wondering why it can't find the bitmap. Also, I tried testing something else out. I picked a color, lets say 500 at 300,300. (fish=300)I do if FindColor(x,y,fish,0,0,1000,1000) then
    begin
    writeln(found color)
    end;
    writeln(didnt find color)

    and it shows up negeative even when I double check exactly the same results with color picker. And yes I always make sure to click right RS window(crosshairs).

  13. #13
    Join Date
    Oct 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Tried it, added activateClient after it failed. Failed again. Added Writeln('not found bitmap') and it came up negative. Didn't work.

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

    Default

    Well i have given my help, if you refuse to use it then thats up to you.

    Go learn from tutorials.

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

  15. #15
    Join Date
    Oct 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Refuse to use it? What? I have been listening to you this whole time, I tried your script youposted and that didnt work. Ive tried for a while to figure out why this isnt working.

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

    Default

    About time I figured out what the problem was, over 15 posts.
    And the problem was?

    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. Find Bitmap in Bitmap file
    By fORCE_wORKS in forum RS3 Outdated / Broken Scripts
    Replies: 8
    Last Post: 12-13-2007, 11:04 PM
  2. find bitmap
    By fORCE_wORKS in forum OSR Help
    Replies: 2
    Last Post: 12-13-2007, 04:26 AM
  3. Can't Find Bitmap
    By Vagrant in forum OSR Help
    Replies: 3
    Last Post: 06-03-2007, 10:14 PM
  4. Cant' find Bitmap?
    By steth1010 in forum OSR Help
    Replies: 2
    Last Post: 05-09-2007, 08:51 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
  •