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

23
LINES

< > BotCompany Repo | #1005379 // Shoot Random Screen Part as 332 Image & Collect

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (6237L/41K/138K).

!752

concepts.

concept GrabbedImage {
  Rect r;
  Image332 image;
}

static int w = 45, h = 45;

p {
  concepts(60*1000);  // auto-save every minute only
  
  while licensed {
    Rectangle r = randomScreenPart(w, h);
    Image332 image = new Image332(shootScreen(r));
    cnew(GrabbedImage, +image, r := new Rect(r));
    print(n(countConcepts(GrabbedImage), "image") + " grabbed");
    quickShowZoomedImage(image.toRGB());
    sleepSeconds(1);
  }
}

Author comment

Began life as a copy of #1005375

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005379
Snippet name: Shoot Random Screen Part as 332 Image & Collect
Eternal ID of this version: #1005379/1
Text MD5: a2cb921dd43c27c88131961ff26c1ae7
Transpilation MD5: 44d3a94b19b0dc9e97e0ee341d010921
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-13 12:12:57
Source code size: 477 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 531 / 652
Referenced in: [show references]