bosshunts Posted February 24, 2016 Share Posted February 24, 2016 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? Quote Link to comment Share on other sites More sharing options...
Wanted Posted February 24, 2016 Share Posted February 24, 2016 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? Quote Link to comment Share on other sites More sharing options...
JmXit Posted April 6, 2016 Share Posted April 6, 2016 Thankyou very much for that code. Quote Link to comment Share on other sites More sharing options...