| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISendEvent
ISendEvent interface defines the methods to send window events.
| Method Summary | |
|---|---|
|  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) | 
| Method Detail | 
|---|
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.
long findWindow(String className,
                String windowName)
className - The class name of the window to be searched.windowName - The window name of the window to be searched.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||