Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • InstantType Working?


    Chochu

    Recommended Posts

    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/

     

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.