Jump to content
shadowrecon

New some help with bitmaps and mouse?

Recommended Posts

Im having some trouble with the mouse movements in smart, i have smart enabled and the osi in the main loop but when it finds the bitmap it moves my mouse over to it, i even put another window over smart and it still clicks the right spot on the minimap but still just moves my mouse to the point, why is this? i have not a clue. Id appreciate the advise! =) the code is below.

 

(let me make it clear, it does click the symbol on the minimap even if it is covered with another window, im not asking how to find a bitmap im asking why it still moves my "real" mouse when it is using a fake mouse plus my real one? )

program BitmapExample;

{$DEFINE RS2}

{$DEFINE SMART}

 

{.include OSI\OSI.scar}

 

var

TrainingSymbol: Integer;

x,y: Integer;

 

procedure Terminate;

begin

Logout;

FreeOSI;

TerminateScript;

end;

 

procedure LoadBmps;

begin

TrainingSymbol := BitmapFromString(8, 11, 'beNo7cAAPSLEWxkQQ8QULFk' +

'BIIMiqVgKScPVABoSb5scLNweiEsjubfA7sXcyEMHFIWrmT4gCCs' +

'LNgTCAJgPVL5pSD0TI4n05ikDxrVMz4eIQe+FSQNOQ3QmRgrsB7k' +

'I49wAAWgiUlA==');

end;

 

procedure ClickBmp;

begin

if(FindBitmap(TrainingSymbol,x,y)) then

begin

wait(1000);

MoveMouseSmoothEx(x,y,20,40,45,25,20);

wait(300);

ClickMouse(x,y,true);

Wait(1000+random(100));

end;

end;

 

procedure FreeBmp;

begin

FreeBitmap(TrainingSymbol);

end;

 

begin

SetUpOSI;

LoadBmps;

ClickBmp;

FreeBmp;

wait(5000);

Terminate;

end.

Edited by shadowrecon
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...