Uses 3874K of libraries. Click here for Pure Java version (9471L/66K/223K).
!7 concept UserScreenshot { new Ref<PNGFile> pngFile; } concept UserLine { S text; } static JTextField tfBla; p-substance-thread { concepts(); awt { tfBla = jCenteredTextField(); JFrame frame = showPackedFrame("Eye", centerAndSouth( jimageButton(#1006830, "snap"), // Blue Eye tfBla)); tfBla.requestFocus(); onEnter(tfBla, r { tfBla.selectAll(); S text = getText(tfBla); cnew(UserLine, +text); print("User says: " + text); }); moveToTopRightCorner(frame); setAlwaysOnTop(frame); hideConsole(); } } svoid snap { tfBla.requestFocus(); BufferedImage img = shootScreen2(); infoBox("Screenshot made: " + img.getWidth() + "*" + img.getHeight() + " #" + cnew(UserScreenshot, pngFile := new PNGFile(img)).id); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006832 |
Snippet name: | Eye Button [takes screenshots and saves typed lines] |
Eternal ID of this version: | #1006832/22 |
Text MD5: | db40f641162f15947f7ffbc0844ba83b |
Transpilation MD5: | 8195652b1019b3b6e4871dca276767e3 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-06 01:08:09 |
Source code size: | 828 bytes / 37 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 602 / 784 |
Version history: | 21 change(s) |
Referenced in: | [show references] |