Chicken Wing Posted September 13, 2015 Share Posted September 13, 2015 (edited) How do I make the script change tab by pressing the function keys (e.g. f6 to switch to magic tab)? When I use getKeyboard().typeKey((char) KeyEvent.VK_F6); It just types "u", if anyone knows what's wrong I would be grateful for some help Edit: nvm I fixed it guy Edited September 13, 2015 by Chicken Wing Quote Link to comment Share on other sites More sharing options...
Prozen Posted September 13, 2015 Share Posted September 13, 2015 (edited) Robot r = new Robot();r.keyPress(KeyEvent.VK_F6);r.keyRelease(KeyEvent.VK_F6); Would this work? Edited September 13, 2015 by Prozen Quote Link to comment Share on other sites More sharing options...
Chicken Wing Posted September 13, 2015 Author Share Posted September 13, 2015 On 9/13/2015 at 12:51 PM, Prozen said: Robot r = new Robot(); r.keyPress(KeyEvent.VK_F6); r.keyRelease(KeyEvent.VK_F6); Would this work? Don't think it does Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted September 13, 2015 Share Posted September 13, 2015 http://osbot.org/forum/topic/80524-hotkeys/ Quote Link to comment Share on other sites More sharing options...
Joseph Posted September 13, 2015 Share Posted September 13, 2015 On 9/13/2015 at 1:02 PM, Flamezzz said: http://osbot.org/forum/topic/80524-hotkeys/ You beat me to it ;P Quote Link to comment Share on other sites More sharing options...
Chicken Wing Posted September 13, 2015 Author Share Posted September 13, 2015 On 9/13/2015 at 1:02 PM, Flamezzz said: http://osbot.org/forum/topic/80524-hotkeys/ On 9/13/2015 at 1:03 PM, Joseph said: You beat me to it ;P Literally realised I was using the wrong method as you posted this Thanks for the help Quote Link to comment Share on other sites More sharing options...