本文整理自网络,侵删。
uses Clipbrd;
procedure TForm1.Timer1Timer(Sender: TObject);beginif Clipboard.HasFormat(CF_TEXT) then begin if Memo1.Lines.IndexOf(Clipboard.AsText)=-1 then begin Memo1.Lines.Add(Clipboard.AsText); end; //Clipboard.Clear; endelse // MessageDlg('There is no text on the Clipboard',mtInformation, [mbOK],0);end;
相关阅读 >>
Delphi windows 编程[6] - 学习窗体生成的过程六: 最终的代码!
Delphi android实例-trectangle加载图片(xe8+小米2)
更多相关阅读请进入《Delphi》频道 >>