Results 1 to 4 of 4

Thread: FindDeformedBitmap

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

    Default FindDeformedBitmap

    i am having some trouble getting this to work, it wont click the location once it has found the bitmap.

    this is the section of code i am using to find the bitmap.

    it returns a 1 which is 100% so why wont it click?

    SCAR Code:
    FindDeformedBitmapToleranceIn(TreeRoad, tx, ty, 601, 3, 709, 164, 80, 1, True, return)
      FindDeformedBitmapToleranceIn(palm, px, py, 601, 3, 709, 164, 80, 1, True, return2)
      FindDeformedBitmapToleranceIn(TreeBank, bx, by, 601, 3, 709, 164, 80, 1, True, return3)
      if(return<0.6)then
      begin
        writeln('TreeRoad: '+FloatToStr(return));
        Mouse(tx, ty, 1, 2, true)
        FreeBitmap(TreeRoad);
        FreeBitmap(TreeBank);
        FreeBitmap(palm);
      end;
      if(return2<0.6)then
      begin
        writeln('palm: '+FloatToStr(return));
        Mouse(px, py, 1, 2, true)
        FreeBitmap(palm);
      end;
      if(return3<0.6)then
      begin
        writeln('TreeBank: '+FloatToStr(return));
        Mouse(bx, by, 1, 2, true)
      end;

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    How big are the bitmaps that you use? If you are using them for walking, try using DTM's instead.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  3. #3
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    How big are the bitmaps that you use? If you are using them for walking, try using DTM's instead.
    Or a Bmp + AutoColorThis + RadialWalk.


  4. #4
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    TreeRoad := BitmapFromString(16, 12, 'beNorlkiMiIKj/FIJNFRU' +
           'gY7wqNdJEbUpkkbTi0s9UDFEPVwLmno0lXDFcC1YzYcrRtOCxz2YW' +
           'iAMTPXIrnK24IkPQPF4RbkEEOFSD1QMVw9BJKmHKMZUD0SlxRLIiF' +
           'T1aIg09QB3Qrjk');
      palm := BitmapFromString(15, 14, 'beNqrVaxvJYxaW6CIPMVhLZYk' +
           'mYypHiKCyxkQWSAJQXicgYywOgNTS563EJpGNMUQBJECKoawsapBV' +
           'glktEcJwUXwqIcguGJiEEmKKUK1SIh4xQBMdu93');
      TreeBank := BitmapFromString(15, 11, 'beNqLECvMFIej3HgxTFQa' +
           'bQNHWFXqpIhCEJp6uGJVPyE4AiqzKZIGIqsEAoqBCoAIohiCEC5Jl' +
           'QAiNMXIKjEVAxFcsasHFwTBrcCquDBJHIicLXiACOI1oGBuhBgQoS' +
           'mGqERTDEKkK4aqx1AMRHAFyIgkxbkA086L+w==');

    thats the bitmaps and i am using them for walking, i have tried to use DTM's but they wouldnt work i dont know why, and also when they do thy click the wrong place.

    i also dont think the autocolorthis would work but i can give that one a go aswell

    thanks for the replys

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
  •