- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi 调用Clipboard 收集剪切板信息
uses Clipbrd;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if Clipboard.HasFormat(CF_TEXT) then
begin
if Memo1.Lines.IndexOf(Clipboard.AsText)=-1 then
begin
Memo1.Lines.Add(Clipboard.AsText);
end;
//Clipboard.Clear;
end
else
// MessageDlg('There is no text on the Clipboard',mtInformation, [mbOK],0);
end;