!7 concept UserScreenshot { new Ref 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); }