Scar not recognizing bitmap?

Discussion in 'Scar/Simba Help' started by vincamous, Jun 26, 2011.

Scar not recognizing bitmap?
  1. Unread #1 - Jun 26, 2011 at 7:50 AM
  2. vincamous
    Joined:
    Jun 26, 2011
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    vincamous Newcomer

    Scar not recognizing bitmap?

    I've been trying for awhile and i can't get scar to recognize the bitmap picture. heres my coding. its my first try with it. any tips? thanks in advance

    Code:
    program red;
    
    var
    x,y: Integer;
    tar3: Integer;
    
    procedure loadtarget;
    
    begin
    
        tar3 := BitmapFromString(30, 30, 'beNrt1UsKACAIBNBq2wH60P2v' +
           'aXSAonTsAw2uH7MQJfphxpg21pJzMG0wcJCNL8mT+KoJwb0XyezOY' +
           '1zCTsohIPFSpJ17ckoAtocrdY4RIG/unLOWvGefb8MP3jqe/9BbUX' +
           'qyP8dTASy9QDw=');
    
       end;
    
    
     procedure usebitmap;
     begin
         if(FindBitmapSpiralTolerance(tar3,x,y,219,264,797,367,255)) then
          MoveMouse(x,y);
          getmousepos(x,y);
          ClickMouse(x,y,true);
           wait(500)
         end;
    begin
    loadtarget;
          ClickMouse(477,331, true);
    wait(500+random(200))
    repeat
    usebitmap;
    until(false);
    end.
     
  3. Unread #2 - Jun 27, 2011 at 6:20 AM
  4. iWoodKart
    Joined:
    Apr 29, 2011
    Posts:
    162
    Referrals:
    0
    Sythe Gold:
    0

    iWoodKart Active Member
    Banned

    Scar not recognizing bitmap?

    Well if the mouse position didn't change after running the script it didn't find it, there could be many reasons for this.
    If its used for runescape and part of the moving scenery if so it might be very hard to find that bitmap even with 255 tolerance? if it is not a stationary object such as icon if prolly wont find it. It if an item, try use DTM since runescape items in inventory have constant black outlining.

    But your script seems fine, as long as you actually need it to run the usebitmap that fast...
     
  5. Unread #3 - Jun 27, 2011 at 5:02 PM
  6. vincamous
    Joined:
    Jun 26, 2011
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    vincamous Newcomer

    Scar not recognizing bitmap?

    It's not for runescape. I'm trying to get it to aim at this picture that pops up randomly one after another. an aimbot i guess. they pop up pretty quick. so if i adjust the tolerance it'd help? the thing i want to aim is only two colors. and the main color is red (255) it just wont move the mouse to it. even if it's just stationary.

    edit: is there a way that i can set the coordinates and then if the color red appears there it'll move and click there?
     
< Worth Learning To Script? | >

Users viewing this thread
1 guest


 
 
Adblock breaks this site