• Log in or sign up for an account here: https://www.sythe.org/login

Scar not recognizing bitmap?

vincamous

Newcomer
Joined
Jun 26, 2011
Sythe Gold
0
Messages
6
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.
 
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...
 
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?
 
Runescape Gamblingrunescape gambling
Back
Top