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).

1  
sS copyTextToClipboardVerboseWithVerify(O _text) {
2  
  S text = copyTextToClipboardVerbose(_text);
3  
  if (!eq(textFromClipboard(), text)) {
4  
    infoBox("copy to clipboard failed");
5  
    copyTextToClipboard(text);
6  
    if (eq(textFromClipboard(), text))
7  
      infoBox("copy to clipboard ok on second attempt");
8  
  }
9  
  ret text;
10  
}

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: 191 / 271
Referenced in: [show references]