Ambassador Posted August 27, 2013 Share Posted August 27, 2013 Hey, I want to have CTRL = true as if the player was pressing CTRL on there keyboard. I want to do this because you can use CTRL to run so I will have certain areas marked for having CTRL on. Just don't know how to get it.. Link to comment Share on other sites More sharing options...
Prefraud Posted August 27, 2013 Share Posted August 27, 2013 What keyboard do you have? Get a razer black widow if you don't have one already ;). 1 Link to comment Share on other sites More sharing options...
Ambassador Posted August 27, 2013 Author Share Posted August 27, 2013 nevermind I got it. public void Running() { try { if (Run()) { bot.getKeyboard().pressKey((char) KeyEvent.VK_CONTROL); } else { bot.getKeyboard().releaseKey((char) KeyEvent.VK_CONTROL); } } catch (InterruptedException e) { } } Link to comment Share on other sites More sharing options...
Ambassador Posted August 27, 2013 Author Share Posted August 27, 2013 What keyboard do you have? Get a razer black widow if you don't have one already . Not what I was asking but I'm on a laptop anyways. I use my desktop as a bot machine server to just run all my bots. I don't even have a monitor connected to it. Just power and Ethernet. My friend just got the black widow and it's pretty good. Link to comment Share on other sites More sharing options...