!7 // The engine (#1006424) might need tweaking if you have a // different color scheme / text size. p { new XP_FindWindows fw; shootScreenHidingConsole_delay = 500; fw.doSingle(shootScreenHidingConsole()); FoundWindow w = findWhere(fw.foundWindows, active := true); if (w == null) print("No active window"); else showImage(clipBufferedImage(fw.originalScreen, w.r)); }