MidnightBlue Posted April 7, 2014 Share Posted April 7, 2014 I'm making a private price checker bot for my clan chat, here's the code I'm using. client.typeString("/" + args[1] + " - " + (price == 0 ? "not tradable" : price)); Is there a way I can set the typing speed or the interval in milliseconds per character, such as: client.setTypingSpeed(7); If there's any possible way to do this, it would be greatly appreciated if you could help me out. Thanks in advanced. (: Link to comment Share on other sites More sharing options...
Swizzbeat Posted April 7, 2014 Share Posted April 7, 2014 I don't think there is a method for this currently, however if you create byte array and loop through typing each key individually you could set your own speed. Link to comment Share on other sites More sharing options...
Declarative Posted April 7, 2014 Share Posted April 7, 2014 (edited) Basic, but it gets the job done: private void writeString(String paramString) throws InterruptedException { for (char c : paramString.toCharArray()) { this.bot.getKeyboard().typeKeyEvent(c, 0); sleep(10); } } paramString : String you wish to type Edited April 7, 2014 by Declarative Link to comment Share on other sites More sharing options...