/** * INTERNAL USE: resets stateful Sikuli X features: <br> * ScreenHighlighter, Observing, Mouse, Key, Hotkeys <br> * When in IDE: resets selected options to defaults (TODO) * * @param n returncode */ public static void cleanUp(int n) { log(lvl, "cleanUp: %d", n); VNCScreen.stopAll(); ADBScreen.stop(); ScreenHighlighter.closeAll(); Observing.cleanUp(); HotkeyManager.reset(); try { new RobotDesktop().keyUp(); } catch (AWTException e) { } Mouse.reset(); }