unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, OleCtrls, SHDocVw;
type
TForm1 = class(TForm)
Timer1: TTimer;
WebBrowser1: TWebBrowser;
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
var
p:TPoint;
dc:HDC;
i:Cardinal;
begin
GetCursorPos(p);
dc := GetDC(0);
i := GetPixel(dc,p.X,p.Y);
if i = $00A63300 then
ShowMessage(‘ok’);
end;
end.