!7 cmodule WholeOSScreenshot > DynSingleFunction { void doIt { dm_hideModule(); sleepSeconds(1); JFrame frame = getFrame(mainDesktopPane()); if (frame == null) ret with print("No frame"); if (!isFullScreen(frame)) activateFrame(frame); BufferedImage img = shootScreenArea(getBounds(frame)); dm_showModule(); sleepSeconds(1); dm_replaceVisual(jscroll(jimagesurface(img))); } }