Jump to content
maxlvs

need bitmap help

Recommended Posts

1 program new;

 

var

Bmp: TSCARBitmap;

x, y: Integer;

 

 

 

 

10 begin

Bmp := TSCARBitmap.Create('deNpjZGBh6K6ra6+qaq2sNNBnBgAlZwTh');

 

If (FindBitmap(x, y, Bmp, 198, 16, 230, 339))Then

begin

writeln('found bitmap')

movemouse(x,y)

17 else

movemouse(216,102)

clickmouse(216,102)

20 end.

 

debug box says

Type Line File Message

complier error 17 Identifier expected

 

like this makes no sence

Link to comment
Share on other sites

You're missing quite a few identifiers and semicolons there, also, that bitmap string doesn't look right, there shouldn't be any spaces in there. Did you delete part of it?

 

program new;
var
 Bmp: TSCARBitmap;
 x, y: Integer;
begin
 Bmp := TSCARBitmap.Create('deNpjZGBh6K6ra6+qaq2sNNBnBgAlZ wTh');

 if FindBitmap(x, y, Bmp, 198, 16, 230, 339) then
 begin
   WriteLn('found bitmap');
   MoveMouse(x, y);
 end else
 begin
   MoveMouse(216, 102);
   ClickMouse(216, 102, True);
 end;
end.

Link to comment
Share on other sites

thank you so much iam gonna try it and get back to you

 

- - - Updated - - -

 

oh hot dam all i need was end else on the same line and thanks for reminding me about semicolons and ya lol i deleted some of the bitmap string lmao

 

it works now man thank you i wonder about moving mouse a bit faster but i will figure out that

 

one other question can i put look in [this box] or [this box] or [this box]

Edited by maxlvs
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...