|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.natives.MSLLKtoRKEventListener
public class MSLLKtoRKEventListener
This Low level key listener will convert the MicroSoft Low Level Key events to
Java RobotKeyEvent
This list of RobotKeyEvent can be parsed by method InputKeysParser.antiParse(List),
and a string, something like "AAAB{%}D", will be returned. This string can be used to generate the test script.
RobotKeyEvent,
InputKeysParser| Constructor Summary | |
|---|---|
MSLLKtoRKEventListener()
|
|
| Method Summary | |
|---|---|
java.util.List<RobotKeyEvent> |
getKeyEvents()
|
boolean |
isCapsLockOn()
|
void |
onLLKeyboardHook(int code,
NativeLong wParam,
User32.KBDLLHOOKSTRUCT info)
This method will analyze each input virtual key code (MS virtual key code) according to their key status (PRESS, RELEASE), generate a series of RobotKeyEvent and put these events in the List keyEvents. Note: RobotKeyEvent contains Java virtual key code as its key code value |
void |
resetKeyEvents()
Remove all RobotKeyEvent from the list keyEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MSLLKtoRKEventListener()
| Method Detail |
|---|
public void onLLKeyboardHook(int code,
NativeLong wParam,
User32.KBDLLHOOKSTRUCT info)
onLLKeyboardHook in interface LLKeyboardHookListenerpublic boolean isCapsLockOn()
public java.util.List<RobotKeyEvent> getKeyEvents()
public void resetKeyEvents()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||