Banker 175 Share Posted October 30, 2016 Hey is there any way to instantly type the message instead of waiting for the script to type it out. The maximum setWordsPerMinute(double); isnt fast enough for what i am doing. Thanks Link to comment Share on other sites More sharing options...
Hashtag 8670 Share Posted October 30, 2016 private void instantType(final String 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)); } Link to comment Share on other sites More sharing options...
Pistol 1 Share Posted March 11, 2017 What are the implications of manually sending KeyEvents?Is it plausible to think bot detection may look at the timing/distribution of KeyEvents and compare them to player data?How does the DB client actually send keyEvents when typing? Is it done based off of human data or is there some way to emulate the OS timings when sending events? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.