| 1 | static S clipboardBot(S s) {
 | 
| 2 | new Matches m; | 
| 3 | |
| 4 |   if "get clipboard" {
 | 
| 5 | S text = getTextFromClipboard(); | 
| 6 | if (text != null) | 
| 7 |       ret structure(ll("text", text));
 | 
| 8 | BufferedImage img = getImageFromClipboard(); | 
| 9 | if (img != null) | 
| 10 |       ret structure(ll("png", toPNG(img)));
 | 
| 11 | ret "empty or unknown"; | 
| 12 | } | 
| 13 | |
| 14 | null; | 
| 15 | } | 
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006181 | 
| Snippet name: | clipboardBot | 
| Eternal ID of this version: | #1006181/1 | 
| Text MD5: | d183853aef13978148995233318f45fc | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2016-12-22 19:15:37 | 
| Source code size: | 342 bytes / 15 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 718 / 727 | 
| Referenced in: | [show references] |