static int shootScreenHidingConsole_delay = 200; static BufferedImage shootScreenHidingConsole() ctex { try { minimizeConsole(); Thread.sleep(shootScreenHidingConsole_delay); ret (BufferedImage) swingAndWait(f shootScreen2); } finally { restoreConsole(); } }