Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1026454 // copyTextToClipboardVerboseWithVerify (returns the argument, prints max. 1000 chars)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4192L/28K).

sS copyTextToClipboardVerboseWithVerify(O _text) {
  S text = copyTextToClipboardVerbose(_text);
  if (!eq(textFromClipboard(), text)) {
    infoBox("copy to clipboard failed");
    copyTextToClipboard(text);
    if (eq(textFromClipboard(), text))
      infoBox("copy to clipboard ok on second attempt");
  }
  ret text;
}

Author comment

Began life as a copy of #1026378

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026454
Snippet name: copyTextToClipboardVerboseWithVerify (returns the argument, prints max. 1000 chars)
Eternal ID of this version: #1026454/1
Text MD5: 8d8eab3a9eeeaf0b628c2bf7f3ad811d
Transpilation MD5: ef29dca741bba1e2fb976790a1fbc2ba
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-04 20:01:25
Source code size: 331 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 105 / 169
Referenced in: [show references]