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

14
LINES

< > BotCompany Repo | #1022902 // Clipboard -> AI Album

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (9093L/48K).

1  
!7
2  
3  
cmodule ClipboardToAIAlbum > DynPrintLogAndEnabled {
4  
  start {
5  
    // offer saving images copied to clipboard to album
6  
    dm_onClipboardImage(voidfunc(BufferedImage img) {
7  
      if (!enabled) ret;
8  
      if (fileIsUnderAbsolutePath(fileFromClipboard(), aiImageAlbumDir())) ret;
9  
      showConfirmDialogInBottomRightCorner("Save image to AI album?", r {
10  
        dm_saveToAIAlbum(img)
11  
      });
12  
    });
13  
  }
14  
}

Author comment

Began life as a copy of #1022584

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022902
Snippet name: Clipboard -> AI Album
Eternal ID of this version: #1022902/5
Text MD5: 8350faf92d21a4630ad771733253dfec
Transpilation MD5: 1756064a4e93e35a7b1c69606e77fd02
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 20:01:32
Source code size: 422 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 201 / 1201
Version history: 4 change(s)
Referenced in: [show references]