| How simultaneously press keyStroke and type character [message #904459] |
Tue, 28 August 2012 09:12  |
maherzia Mising name Messages: 6 Registered: February 2010 |
Junior Member |
|
|
Hello,
I'm trying to press simultaneously "Alt" + "O" keyboard character.
keyboard awtk = keyboardFactory.getAWTkeyboard();
keyStroke alt = keyStrokes.ALT;
swtk.pressShortcut(alt);
swtk.typeCharacter("o".toCharArray()[0]);
These lines of code press keys separately, I need them at the same time.
Any help is welcome
Thanks in advance
Maherzia
|
|
|
|
Powered by
FUDForum. Page generated in 0.01775 seconds