Jump to content
blitz

Bitmap Help Needed...

Recommended Posts

So in this program I'm trying to get it to hover the mouse over a box trap on RuneScape then tell me its coordiantes. It never hovers over the trap and it returns the coordinates as -1 and -1. Please help.

 

program FindTheBox;

 

var trap:TSCARBitmap;

var x,y: Integer;

 

procedure LoadBMPs;

 

begin

Trap := TSCARBitmap.Create('deNqVV/1rUlEYtn8iGvXDwh/DkJpLnNqdtZuXp' +

'lNrmiA1bTFqjjEYrTH6IoKIIIiI/tye+bCn1/dcteBFzj0fz/N+n+P1TDbzsFa' +

'SbJRvQ+rVAoQDzidRwW7TJHeGS06whwjcf690k+D8TapFC8LJTOaS9v8LCzcQ0' +

'1ohFmsOxsBvrF3Fb0gxi5GqCt9SiMguiSK/vGwR/hoeeNUiWKgwQDTh4PlIFDY' +

'cYMFnatSkKqMwi0L4g0cdS7Ew1mIhxfpq3iWS3AXMk/EYFP12+0EUWUcpW/jZi' +

'iupjsKGajEHEYWNAkCAuT8c7vS63a0tFwttm2XC+mpOrrZu14w1pFWv18plFwv' +

'n3mY9stbh05Xbuc4X6RHmGJBdRlF5oKVa0apXm3EkBJKeZ8V0Drs0dhRWGYffT' +

'tYhqm6bQs4EpQHH/0Vhe4LCGpbb2soNIEvC0lsoUk+ALjpcYhQgwyTbqlwjxfz' +

'uxEpkmIgDcErYqQD4/XR7t5Gt5i9/OGgkxSVSzEnUKa6L4CJ7SQHP0/lYoua/P' +

'w5+vn0Clq+vO5+PWrVbV+LCkuxaWOOuKCb4OQiP/3rfB/iPsx7xvxy3Px02YQh' +

'8dbpXPx5tHO3cx7ZZDTBsg+LCKSF/e/PYgr/b3wT4yYsY4FjFjJzmQsP8wYB5Y' +

'qNAzwsZngE4kM9eJgSn8ljFDEQUNjQ2k5WNtqMSdhYFDMQkBpRUKyyFKkIJhiP' +

'0Cd0CZH6SAqQyhBJmlxKVpOpLWsIRgktzKg+xjhoPIkpYI3MuNTmKTpZnCAvh4' +

'PBpDciv+nf3ehVIWOnxRGHTzPMKBAZsdNRcOsstFn93uzzqlCDuBgz7lW13ssJ' +

'qTnAgQ+gfaE78QfMOxFkRdkW5yDY6G02C0+0YSH+A9zcL3WRlzg2o0rCdlhSEt' +

'eBAhtAE4bMDAD+8AS0js8jaor4qZEWWJjxrFYlPcNWdzZywdVhbuIqDJCI4kCE' +

'0YUr54Iq0FxwHinLqxSciJg9YrPJsfdgWR1PPFYWA4l5ozqWOSPh8t7iCcrZI2' +

'7BH2bNxVFQ3kPLCT+3SYeuwwqdaKKECqWK7k7PI3rChPpMbKq9HiNtgz6a+w+k' +

'H93fG9skw69xzdNZlZ3X4A3OfWFk=');

getClient.activate;

debugbitmap(trap);

end;

 

procedure FindTrap;

 

begin;

if findbitmap(x,y,trap,0,0,100,100) then

MoveMouse(x,y);

writeln('x =' + inttostr(x) + ' Y =' + inttostr(y));

end;

begin

repeat

wait(3500);

LoadBMPs;

FindTrap;

until false;

 

end.

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...