shadowrecon Posted January 1, 2012 Share Posted January 1, 2012 (edited) 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 January 1, 2012 by shadowrecon Quote Link to comment Share on other sites More sharing options...