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

!7

cmodule ClipboardToAIAlbum > DynPrintLogAndEnabled {
  start {
    // offer saving images copied to clipboard to album
    dm_onClipboardImage(voidfunc(BufferedImage img) {
      if (!enabled) ret;
      if (fileIsUnderAbsolutePath(fileFromClipboard(), aiImageAlbumDir())) ret;
      showConfirmDialogInBottomRightCorner("Save image to AI album?", r {
        dm_saveToAIAlbum(img)
      });
    });
  }
}

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: 267 / 1290
Version history: 4 change(s)
Referenced in: