Is there a way to search for a color or bitmap from a saved bitmap file.
Is there a way to search for a color or bitmap from a saved bitmap file.
Yes. But first you must make the bitmap into a string.
(under Tools->Picture To String.. then load the bitmap you want to use)
Then define the string that you get as an integer.
EX.
Then use it.SCAR Code:var
BMPname : Integer;
begin
BMPname := BitmapFromString(16, 16, 'beNp7//Hte+qjC+cv7Nmw6uKFi' +
'8Qo3r189u8Oj//l2i8avK9du7Hv6KkZB6/M2Hps54Ejr968Q1N8YE' +
'VDIuZwdf6tV/3a92Yqf5qv87VnS5o5kNQ25KionN6yYeVY46pzZ+S' +
'/3+lwf+Thv8fG29a2YQ1ATx68qxuS2LdJ7uU4/rnLl7asmrutoUp6' +
'5a0Pn/xCleaefz0ed/SlulLJ1GaVgG1PTL+');
end.
SCAR Code:if FindBitmap(BMPname, x, y) then MMouse(x, y, 0, 0);
lol, i posted on your other thread, but i might as well post here too
use:
SetTargetBitmap(bitmap: Integer);
and then all the bitmaps/dtms/colors you search for will be searched for in that bitmap, not rs
also remember to have already loaded the bitmap with:
LoadBitmap(path: string): Integer;
path is the location (c:/Program Files ...)
so to set the target bitmap to bitmap "b" in location "C:/Location" do
remember b has to be an integer var typeSCAR Code:b:=LoadBitmap('C:/Location');
SetTargetBitmap(bitmap: Integer);
Edit: Derek- Nice answer to the wrong question![]()
http://www.macrosoftinc.com/ ---WTF COPIERS!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)