public interface ISendEvent
| Modifier and Type | Method and Description |
|---|---|
long |
findWindow(String className,
String windowName) |
boolean |
focusWindow(long hwnd) |
boolean |
postKey(int vkey,
boolean isUp)
This method send a key event to the focused window.
|
boolean |
postKeyToWindow(long hwnd,
int vkey,
boolean isUp) |
boolean |
postMouse(int x,
int y,
boolean isUp)
This method send a mouse event to the focuesd window.
|
boolean |
postMouseToWindow(long hwnd,
int x,
int y,
boolean isUp) |
boolean postKey(int vkey,
boolean isUp)
vkey - the virtual key code to be sent.isUp - the key status of up/down.boolean postMouse(int x,
int y,
boolean isUp)
x - The x position of the mouse cursor to be set.y - The y position of the mouse cursor to be set.isUp - The mouse status of up/down.boolean focusWindow(long hwnd)
hwnd - The window handle to be focused.boolean postKeyToWindow(long hwnd,
int vkey,
boolean isUp)
hwnd - The window handle to which the key event will be sent.vkey - The virtual key code to be sent.isUp - The key status of up/down.boolean postMouseToWindow(long hwnd,
int x,
int y,
boolean isUp)
hwnd - The window handle to which the mouse event will be sent.x - The x position of the mouse cursor to be set.y - The y position of the mouse cursor to be set.isUp - The mouse status of up/down.