reorganized CommandProcessor, added open and displayText commands
Commands are categorized in to sections, Keyboard, Mouse, Windows, File, and Main. The open command will open an application. The displayText command displays a status text for a period of time. Added unit test for CommandProcessor.
This commit is contained in:
@@ -120,6 +120,7 @@ public class Api {
|
||||
HWND SetFocus(HWND hWnd);
|
||||
|
||||
HWND FindWindow(String winClass, String title);
|
||||
LRESULT PostMessage(HWND hWnd, int Msg, WPARAM wParam, LPARAM lParam);
|
||||
LRESULT SendMessage(HWND hWnd, int Msg, WPARAM wParam, LPARAM lParam);
|
||||
LRESULT SendMessageA(HWND editHwnd, int wmGettext, long l, byte[] lParamStr);
|
||||
boolean DestroyWindow(HWND hWnd);
|
||||
@@ -296,7 +297,8 @@ public class Api {
|
||||
|
||||
public boolean closeWindow(HWND handle) {
|
||||
//return user32.DestroyWindow(handle);
|
||||
user32.SendMessage(handle, WM_CLOSE , null, null);
|
||||
//user32.SendMessage(handle, WM_CLOSE , null, null);
|
||||
user32.PostMessage(handle, WM_CLOSE , null, null);
|
||||
//user32.SendMessage(handle, WM_NCDESTROY , null, null);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user