Chochu 1 Posted July 1, 2017 I dont know if it's me, But is InstantType working for anyone? private void instantType(final String message) { log(message); Canvas canvas = getClient().getInstance().getCanvas(); for (char c : message.toCharArray()) { canvas.dispatchEvent(new KeyEvent(canvas, KeyEvent.KEY_TYPED,System.currentTimeMillis(), 0, KeyEvent.VK_UNDEFINED, c)); } canvas.dispatchEvent(new KeyEvent(canvas, KeyEvent.KEY_PRESSED, System.currentTimeMillis(), 0, KeyEvent.VK_ENTER, KeyEvent.CHAR_UNDEFINED)); canvas.dispatchEvent(new KeyEvent(canvas, KeyEvent.KEY_RELEASED, System.currentTimeMillis(), 0, KeyEvent.VK_ENTER, KeyEvent.CHAR_UNDEFINED)); } I calling the function, but no message was sent Source: https://dreambot.org/forums/index.php/topic/7118-getkeyboardtype-instantly/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.