spudz
2011-12-09 22:44:33
i am making a simple script for a private server to bot prayer, i am having trouble with bitmaps, im finding the altar using a bitmap (not the best option but i just wanted to learn how to use the bitmap functions) however the script finds the altar but im just wondering how do i move my mouse to the altar.
code
so how would i move the mouse to the position of the bitmap.
first ever attempt at making something using simba or scar.
code
program pwnprayer;
Var
altar, X, Y:Integer;
procedure findaltar1;
begin
altar:= BitmapFromString(23, 20, 'meJyllEEKgzAQRc8gFIQe34WIYi' +
'WiKKK0tHgOF72GxQ4MfH6nxhYiD3GTN9/JJOv6WsPYtk3ecXwenJu' +
'nCVzbFgxVxfRlCbqiYMk8jj5uXQfGugYilIUseQwD2FV9ZHNOOZAc' +
'CtMPnNOWLJJUmApALfpc1JZImvVpvnoE5TgCosCUElUXQKIfBCM5d' +
'b+PMGoXiy0Q==');
If (FindBitmap(altar, X, Y)) Then
Writeln('Found the altar bitmap')
Else
Writeln('Could not find altar');
End;
procedure findbones1;
begin
MoveMouse(577,224);
wait (50);
ClickMouse(577,224,Mouse_right);
wait (500);
MoveMouse(577,262);
wait (300);
ClickMouse(577,262,Mouse_left);
SetTargetBitmap(altar);
end;
begin
findaltar1;
findbones1;
end. so how would i move the mouse to the position of the bitmap.
first ever attempt at making something using simba or scar.