Jump to content
bosshunts

Find specific Bitmap and click it.

Recommended Posts

So I want for scar to find certain picture on screen and click it. This picture is only about 10x10 pixels but it doesn't only stay in one place on the screen.

I'm stuck with Bitmap functions. I can't understand any of them. Can anyone help me out?

 

 

const XLeft = 0; YTop = 0; XRight = 500; YBottom = 500;var bmp: TSCARBitmap; X, Y: Integer;begin         //Tools -> Pick bitmap Bmp := TSCARBitmap.Create('deNpdzN9KwlAAx3Fvo1d0R+wVsrB7QfYO+QLRj' +   'SxwDSFYgo1NcR69UGNTIybizqkZO/828ugRjeBz9eXH76JwWciy/J/U81aVSt5' +   'sCpErpNf/qt4lD4/R9b6vazUhMmUMwK9tr29uVY90nfNMWXSdgQZyw1C9U77iX' +   'EgYYwihM904Gojq9ZdSaXTfYEwghIdDiLfMe0dvk82rBn503dJAHGPfP/bpZ2K' +   'aVq/13C6CD7sz8CHaMvfQW6YVzpeEColSgRLqzmT/lvswXBLCT9xZPDn0IFykh' +   'P0ljw3jKQjmaUr3yNkOelP42A=='); if (FindBitmap(X, Y, Bmp, XLeft, YTop, XRight, YBottom)) then   ClickMouse(X, Y, mbLeft); bmp.Free;end.

 

 

What part are you having issue with?

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