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

20
LINES

< > BotCompany Repo | #1005344 // Shoot Random Screen Part

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

Libraryless. Click here for Pure Java version (4013L/27K/91K).

!752

static int w = 45, h = 45;

static ImageSurface imageSurface;

p {
  bool firstTime = true;
  while licensed {
    Rectangle r = randomScreenPart(w, h);
    RGBImage image = shootScreen(r);
    imageSurface = showImage(image, imageSurface);
    if (firstTime) {
      imageSurface.setZoom(2);
      packFrame(imageSurface);
      firstTime = false;
    }
    sleepSeconds(1);
  }
}

Author comment

Began life as a copy of #1004983

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005344
Snippet name: Shoot Random Screen Part
Eternal ID of this version: #1005344/1
Text MD5: c83ddd5faf207c900ef35325f45e6422
Transpilation MD5: 7117f5ee8bac0cc41491b84d5870f467
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-10 01:53:59
Source code size: 406 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 579 / 666
Referenced in: [show references]