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

1  
!752
2  
3  
concepts.
4  
5  
concept GrabbedImage {
6  
  long lastScreenshotTime;
7  
  Rect lastRect;
8  
  BWImage image;
9  
  S md5;
10  
  int count;
11  
}
12  
13  
p {
14  
  loadConceptsFrom("#1005951");
15  
  
16  
  new L<L> data;
17  
  for (GrabbedImage gi : sortByFieldDesc(list(GrabbedImage), "count"))
18  
    data.add(ll(gi.count, gi.md5, gi.image.getBufferedImage(), str(gi.lastRect)));
19  
  
20  
  final JTable table = showTableWithImages("Auto-Shot Stuff", splitAtSlash("Count/MD5/Image/Last position"), data);
21  
  table.setRowHeight(25);
22  
  
23  
  tablePopupMenu(table, voidfunc(JPopupMenu menu, final int row) {
24  
    addMenuItem(menu, "Mark on screen", r-thread {
25  
      Rect r;
26  
      pointArrowsToArea(r = parseRect(getTableLine(table, row).get(3)));
27  
      print("Marking: " + r);
28  
    });
29  
  });
30  
  
31  
  gcAndPrintMemoryInfo();
32  
}

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: 621 / 1064
Referenced in: [show references]