Having a little trouble with the bitmap mask function, though I cant figure out why...
Anywho, basically Im trying to create a little bot for a flash game, only trick is that the menu moves around just enough for a basic mouse macro to not work.
So just to start things up, I took a screenshot, opened up Scar -> Tools -> Picture to String. Selected a little bit of text, went to the mask editor and clicked on the white part. Tada, a mask right?
Moving the mouse and such is just a visual for me to quickly know if it worked or not. It didn't, sadly. With the output of :Code:program New; var Mask, x, y : integer; begin Mask := BitmapFromString(41, 13, 'beNq1lMkRACAIA+2/6ViAEj' + 'eiPBnIKpc0CpO0dXKr0oe1Kr3P9WivYB7vlX+jvSaMMWFNNJGNCvt' + 'WM/qdR6dz8gS9+vniNMebyP5Ak8WPyhV1gbQV7hFHk8E7XqGLzTpf' + 'tgnEvAIb'); writeln(booltostr(findbitmapmasktolerance(Mask, x,y, 299, 184,437, 396, 75,100))); writeln(inttostr(x) + ' ' + inttostr(y)); movemouse(x,y); end.
False
0 0
Successfully executed
Quick note: Yes I did make the X1X2,Y1Y2 large enough to cover anyplace the menu would be at (and then some, just incase).


Reply With Quote