Trace clipboard content in Delphi

It's very simple. Just drop TClipboardHistory component onto your form. It has OnChange event that is fired each time when clipboard content is changed.

procedure TfrmClipboardDemoMain.cmpClipboardHistoryChange(Sender: TObject);
begin
  SetForegroundWindow(Handle);
  Application.MessageBox(PChar(Clipboard.AsText),'Clipboard content changed',MB_OK);
end;

In addition TClipboardHistory offers clip history that can be accessed with History and HistoreCount properties.

See also
Clipboard History
Components for Delphi / C++ Builder
Howtos for Programmers