tclipboard_settext.bmx 296 B

123456789101112131415
  1. SuperStrict
  2. Framework Brl.Clipboard
  3. Import Brl.StandardIO
  4. ' create a clipboard manager to access the system wide clipboard
  5. Local clipboard:TClipboard = New TClipboard.Create()
  6. ' try to set a new text
  7. If clipboard.SetText("TEST") Then
  8. Print clipboard.Text()
  9. EndIf
  10. 'output:
  11. 'TEST