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

32
LINES

< > BotCompany Repo | #1005971 // Show images from auto-shooter

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

Libraryless. Click here for Pure Java version (8608L/59K/204K).

!752

concepts.

concept GrabbedImage {
  long lastScreenshotTime;
  Rect lastRect;
  BWImage image;
  S md5;
  int count;
}

p {
  loadConceptsFrom("#1005951");
  
  new L<L> data;
  for (GrabbedImage gi : sortByFieldDesc(list(GrabbedImage), "count"))
    data.add(ll(gi.count, gi.md5, gi.image.getBufferedImage(), str(gi.lastRect)));
  
  final JTable table = showTableWithImages("Auto-Shot Stuff", splitAtSlash("Count/MD5/Image/Last position"), data);
  table.setRowHeight(25);
  
  tablePopupMenu(table, voidfunc(JPopupMenu menu, final int row) {
    addMenuItem(menu, "Mark on screen", r-thread {
      Rect r;
      pointArrowsToArea(r = parseRect(getTableLine(table, row).get(3)));
      print("Marking: " + r);
    });
  });
  
  gcAndPrintMemoryInfo();
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005971
Snippet name: Show images from auto-shooter
Eternal ID of this version: #1005971/1
Text MD5: b7282d88660d64b9ac2867687f19bbf3
Transpilation MD5: 80ac3129a2c7321b8b5ba10a3755b902
Author: stefan
Category: javax / gui / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-19 12:25:30
Source code size: 794 bytes / 32 lines
Pitched / IR pitched: No / No
Views / Downloads: 619 / 1060
Referenced in: [show references]