public class Window extends Common implements IWMConsts, IMKConsts
com.sun.jna.platform.win32.WinUser.BLENDFUNCTION, com.sun.jna.platform.win32.WinUser.FLASHWINFO, com.sun.jna.platform.win32.WinUser.GUITHREADINFO, com.sun.jna.platform.win32.WinUser.HARDWAREINPUT, com.sun.jna.platform.win32.WinUser.HHOOK, com.sun.jna.platform.win32.WinUser.HOOKPROC, com.sun.jna.platform.win32.WinUser.INPUT, com.sun.jna.platform.win32.WinUser.KBDLLHOOKSTRUCT, com.sun.jna.platform.win32.WinUser.KEYBDINPUT, com.sun.jna.platform.win32.WinUser.LASTINPUTINFO, com.sun.jna.platform.win32.WinUser.LowLevelKeyboardProc, com.sun.jna.platform.win32.WinUser.MOUSEINPUT, com.sun.jna.platform.win32.WinUser.MSG, com.sun.jna.platform.win32.WinUser.POINT, com.sun.jna.platform.win32.WinUser.SIZE, com.sun.jna.platform.win32.WinUser.WINDOWINFO, com.sun.jna.platform.win32.WinUser.WNDENUMPROC
com.sun.jna.platform.win32.WinDef.DWORD, com.sun.jna.platform.win32.WinDef.DWORDLONG, com.sun.jna.platform.win32.WinDef.HBITMAP, com.sun.jna.platform.win32.WinDef.HCURSOR, com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinDef.HFONT, com.sun.jna.platform.win32.WinDef.HICON, com.sun.jna.platform.win32.WinDef.HINSTANCE, com.sun.jna.platform.win32.WinDef.HMENU, com.sun.jna.platform.win32.WinDef.HMODULE, com.sun.jna.platform.win32.WinDef.HPALETTE, com.sun.jna.platform.win32.WinDef.HPEN, com.sun.jna.platform.win32.WinDef.HRGN, com.sun.jna.platform.win32.WinDef.HRSRC, com.sun.jna.platform.win32.WinDef.HWND, com.sun.jna.platform.win32.WinDef.INT_PTR, com.sun.jna.platform.win32.WinDef.LONG, com.sun.jna.platform.win32.WinDef.LPARAM, com.sun.jna.platform.win32.WinDef.LRESULT, com.sun.jna.platform.win32.WinDef.RECT, com.sun.jna.platform.win32.WinDef.UINT_PTR, com.sun.jna.platform.win32.WinDef.ULONG, com.sun.jna.platform.win32.WinDef.ULONGLONG, com.sun.jna.platform.win32.WinDef.WORD, com.sun.jna.platform.win32.WinDef.WPARAM
WM_ACTIVATE, WM_ACTIVATEAPP, WM_AFXFIRST, WM_AFXLAST, WM_APP, WM_ASKCBFORMATNAME, WM_CANCELJOURNAL, WM_CANCELMODE, WM_CAPTURECHANGED, WM_CHANGECBCHAIN, WM_CHANGEUISTATE, WM_CHAR, WM_CHARTOITEM, WM_CHILDACTIVATE, WM_CLEAR, WM_CLOSE, WM_COMMAND, WM_COMPACTING, WM_COMPAREITEM, WM_CONTEXTMENU, WM_COPY, WM_COPYDATA, WM_CREATE, WM_CTLCOLORBTN, WM_CTLCOLORDLG, WM_CTLCOLOREDIT, WM_CTLCOLORLISTBOX, WM_CTLCOLORMSGBOX, WM_CTLCOLORSCROLLBAR, WM_CTLCOLORSTATIC, WM_CUT, WM_DEADCHAR, WM_DELETEITEM, WM_DESTROY, WM_DESTROYCLIPBOARD, WM_DEVICECHANGE, WM_DEVMODECHANGE, WM_DISPLAYCHANGE, WM_DRAWCLIPBOARD, WM_DRAWITEM, WM_DROPFILES, WM_ENABLE, WM_ENDSESSION, WM_ENTERIDLE, WM_ENTERMENULOOP, WM_ENTERSIZEMOVE, WM_ERASEBKGND, WM_EXITMENULOOP, WM_EXITSIZEMOVE, WM_FONTCHANGE, WM_GETDLGCODE, WM_GETFONT, WM_GETHOTKEY, WM_GETICON, WM_GETMINMAXINFO, WM_GETOBJECT, WM_GETTEXT, WM_GETTEXTLENGTH, WM_HANDHELDFIRST, WM_HANDHELDLAST, WM_HELP, WM_HOTKEY, WM_HSCROLL, WM_HSCROLLCLIPBOARD, WM_ICONERASEBKGND, WM_IME_CHAR, WM_IME_COMPOSITION, WM_IME_COMPOSITIONFULL, WM_IME_CONTROL, WM_IME_ENDCOMPOSITION, WM_IME_KEYDOWN, WM_IME_KEYLAST, WM_IME_KEYUP, WM_IME_NOTIFY, WM_IME_REQUEST, WM_IME_SELECT, WM_IME_SETCONTEXT, WM_IME_STARTCOMPOSITION, WM_INITDIALOG, WM_INITMENU, WM_INITMENUPOPUP, WM_INPUTLANGCHANGE, WM_INPUTLANGCHANGEREQUEST, WM_KEYDOWN, WM_KEYFIRST, WM_KEYLAST, WM_KEYUP, WM_KILLFOCUS, WM_LBUTTONDBLCLK, WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MBUTTONDBLCLK, WM_MBUTTONDOWN, WM_MBUTTONUP, WM_MDIACTIVATE, WM_MDICASCADE, WM_MDICREATE, WM_MDIDESTROY, WM_MDIGETACTIVE, WM_MDIICONARRANGE, WM_MDIMAXIMIZE, WM_MDINEXT, WM_MDIREFRESHMENU, WM_MDIRESTORE, WM_MDISETMENU, WM_MDITILE, WM_MEASUREITEM, WM_MENUCHAR, WM_MENUCOMMAND, WM_MENUDRAG, WM_MENUGETOBJECT, WM_MENURBUTTONUP, WM_MENUSELECT, WM_MOUSEACTIVATE, WM_MOUSEFIRST, WM_MOUSEHOVER, WM_MOUSEHWHEEL, WM_MOUSELAST, WM_MOUSELEAVE, WM_MOUSEMOVE, WM_MOUSEWHEEL, WM_MOVE, WM_MOVING, WM_NCACTIVATE, WM_NCCALCSIZE, WM_NCCREATE, WM_NCDESTROY, WM_NCHITTEST, WM_NCLBUTTONDBLCLK, WM_NCLBUTTONDOWN, WM_NCLBUTTONUP, WM_NCMBUTTONDBLCLK, WM_NCMBUTTONDOWN, WM_NCMBUTTONUP, WM_NCMOUSEMOVE, WM_NCPAINT, WM_NCRBUTTONDBLCLK, WM_NCRBUTTONDOWN, WM_NCRBUTTONUP, WM_NCUAHDRAWCAPTION, WM_NCUAHDRAWFRAME, WM_NEXTDLGCTL, WM_NEXTMENU, WM_NOTIFY, WM_NOTIFYFORMAT, WM_NULL, WM_PAINT, WM_PAINTCLIPBOARD, WM_PAINTICON, WM_PALETTECHANGED, WM_PALETTEISCHANGING, WM_PARENTNOTIFY, WM_PASTE, WM_PENWINFIRST, WM_PENWINLAST, WM_POWER, WM_POWERBROADCAST, WM_PRINT, WM_PRINTCLIENT, WM_QUERYDRAGICON, WM_QUERYENDSESSION, WM_QUERYNEWPALETTE, WM_QUERYOPEN, WM_QUEUESYNC, WM_QUIT, WM_RBUTTONDBLCLK, WM_RBUTTONDOWN, WM_RBUTTONUP, WM_RENDERALLFORMATS, WM_RENDERFORMAT, WM_SETCURSOR, WM_SETFOCUS, WM_SETFONT, WM_SETHOTKEY, WM_SETICON, WM_SETREDRAW, WM_SETTEXT, WM_SETTINGCHANGE, WM_SHOWWINDOW, WM_SIZE, WM_SIZECLIPBOARD, WM_SIZING, WM_SPOOLERSTATUS, WM_STYLECHANGED, WM_STYLECHANGING, WM_SYNCPAINT, WM_SYSCHAR, WM_SYSCOLORCHANGE, WM_SYSCOMMAND, WM_SYSDEADCHAR, WM_SYSKEYDOWN, WM_SYSKEYUP, WM_TCARD, WM_TIMECHANGE, WM_TIMER, WM_UNDO, WM_UNINITMENUPOPUP, WM_USER, WM_USERCHANGED, WM_VKEYTOITEM, WM_VSCROLL, WM_VSCROLLCLIPBOARD, WM_WINDOWPOSCHANGED, WM_WINDOWPOSCHANGING, WM_WININICHANGE, WM_XBUTTONDBLCLK, WM_XBUTTONDOWN, WM_XBUTTONUP
AC_SRC_ALPHA, AC_SRC_NO_ALPHA, AC_SRC_NO_PREMULT_ALPHA, AC_SRC_OVER, DWL_DLGPROC, DWL_MSGRESULT, DWL_USER, FLASHW_ALL, FLASHW_CAPTION, FLASHW_STOP, FLASHW_TIMER, FLASHW_TIMERNOFG, FLASHW_TRAY, GW_CHILD, GW_ENABLEDPOPUP, GW_HWNDFIRST, GW_HWNDLAST, GW_HWNDNEXT, GW_HWNDPREV, GW_OWNER, GWL_EXSTYLE, GWL_HINSTANCE, GWL_ID, GWL_STYLE, GWL_USERDATA, GWL_WNDPROC, HWND_BROADCAST, IMAGE_BITMAP, IMAGE_CURSOR, IMAGE_ENHMETAFILE, IMAGE_ICON, LR_COLOR, LR_COPYDELETEORG, LR_COPYFROMRESOURCE, LR_COPYRETURNORG, LR_CREATEDIBSECTION, LR_DEFAULTCOLOR, LR_DEFAULTSIZE, LR_LOADFROMFILE, LR_LOADMAP3DCOLORS, LR_LOADTRANSPARENT, LR_MONOCHROME, LR_SHARED, LR_VGACOLOR, LWA_ALPHA, LWA_COLORKEY, MOD_ALT, MOD_CONTROL, MOD_NOREPEAT, MOD_SHIFT, MOD_WIN, RDW_ALLCHILDREN, RDW_ERASE, RDW_ERASENOW, RDW_FRAME, RDW_INTERNALPAINT, RDW_INVALIDATE, RDW_NOCHILDREN, RDW_NOERASE, RDW_NOFRAME, RDW_NOINTERNALPAINT, RDW_UPDATENOW, RDW_VALIDATE, SC_MAXIMIZE, SC_MINIMIZE, SM_ARRANGE, SM_CARETBLINKINGENABLED, SM_CLEANBOOT, SM_CMONITORS, SM_CMOUSEBUTTONS, SM_CXBORDER, SM_CXCURSOR, SM_CXDLGFRAME, SM_CXDOUBLECLK, SM_CXDRAG, SM_CXEDGE, SM_CXFIXEDFRAME, SM_CXFOCUSBORDER, SM_CXFRAME, SM_CXFULLSCREEN, SM_CXHSCROLL, SM_CXHTHUMB, SM_CXICON, SM_CXICONSPACING, SM_CXMAXIMIZED, SM_CXMAXTRACK, SM_CXMENUCHECK, SM_CXMENUSIZE, SM_CXMIN, SM_CXMINIMIZED, SM_CXMINSPACING, SM_CXMINTRACK, SM_CXPADDEDBORDER, SM_CXSCREEN, SM_CXSIZE, SM_CXSIZEFRAME, SM_CXSMICON, SM_CXSMSIZE, SM_CXVIRTUALSCREEN, SM_CXVSCROLL, SM_CYBORDER, SM_CYCAPTION, SM_CYCURSOR, SM_CYDLGFRAME, SM_CYDOUBLECLK, SM_CYDRAG, SM_CYEDGE, SM_CYFIXEDFRAME, SM_CYFOCUSBORDER, SM_CYFRAME, SM_CYFULLSCREEN, SM_CYHSCROLL, SM_CYICON, SM_CYICONSPACING, SM_CYKANJIWINDOW, SM_CYMAXIMIZED, SM_CYMAXTRACK, SM_CYMENU, SM_CYMENUCHECK, SM_CYMENUSIZE, SM_CYMIN, SM_CYMINIMIZED, SM_CYMINSPACING, SM_CYMINTRACK, SM_CYSCREEN, SM_CYSIZE, SM_CYSIZEFRAME, SM_CYSMCAPTION, SM_CYSMICON, SM_CYSMSIZE, SM_CYVIRTUALSCREEN, SM_CYVSCROLL, SM_CYVTHUMB, SM_DBCSENABLED, SM_DEBUG, SM_IMMENABLED, SM_MEDIACENTER, SM_MENUDROPALIGNMENT, SM_MIDEASTENABLED, SM_MOUSEHORIZONTALWHEELPRESENT, SM_MOUSEPRESENT, SM_MOUSEWHEELPRESENT, SM_NETWORK, SM_PENWINDOWS, SM_REMOTECONTROL, SM_REMOTESESSION, SM_RESERVED1, SM_RESERVED2, SM_RESERVED3, SM_RESERVED4, SM_SAMEDISPLAYFORMAT, SM_SECURE, SM_SERVERR2, SM_SHOWSOUNDS, SM_SHUTTINGDOWN, SM_SLOWMACHINE, SM_STARTER, SM_SWAPBUTTON, SM_TABLETPC, SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN, SW_FORCEMINIMIZE, SW_HIDE, SW_MAX, SW_MAXIMIZE, SW_MINIMIZE, SW_NORMAL, SW_RESTORE, SW_SHOW, SW_SHOWDEFAULT, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, SW_SHOWMINNOACTIVE, SW_SHOWNA, SW_SHOWNOACTIVATE, SW_SHOWNORMAL, SWP_NOZORDER, ULW_ALPHA, ULW_COLORKEY, ULW_OPAQUE, VK_CONTROL, VK_LCONTROL, VK_LMENU, VK_LSHIFT, VK_MENU, VK_RCONTROL, VK_RMENU, VK_RSHIFT, VK_SHIFT, WH_KEYBOARD, WH_KEYBOARD_LL, WH_MOUSE, WH_MOUSE_LL, WS_CHILD, WS_EX_COMPOSITED, WS_EX_LAYERED, WS_EX_TRANSPARENT, WS_MAXIMIZE, WS_MINIMIZE, WS_POPUP, WS_VISIBLE
FUNCTION_MAPPER, STDCALL_CONVENTION
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
MK_CONTROL, MK_LBUTTON, MK_MBUTTON, MK_RBUTTON, MK_SHIFT, MK_XBUTTON1, MK_XBUTTON2
ICC_ALL, ICC_ANIMATE_CLASS, ICC_BAR_CLASSES, ICC_COOL_CLASSES, ICC_DATE_CLASSES, ICC_HOTKEY_CLASS, ICC_INTERNET_CLASSES, ICC_LINK_CLASS, ICC_LISTVIEW_CLASSES, ICC_NATIVEFNTCTL_CLASS, ICC_PAGESCROLLER_CLASS, ICC_PROGRESS_CLASS, ICC_STANDARD_CLASSES, ICC_TAB_CLASSES, ICC_TREEVIEW_CLASSES, ICC_UPDOWN_CLASS, ICC_USEREX_CLASSES, ICC_WIN95_CLASSES
Constructor and Description |
---|
Window()
.
|
Modifier and Type | Method and Description |
---|---|
void |
activate(long hwnd)
.
|
void |
click(long hwnd,
int button,
int x,
int y,
boolean isControl,
boolean isAlt,
boolean isShift)
.
|
void |
close(long hwnd)
.
|
void |
doubleClick(long hwnd,
int button,
int x,
int y,
boolean isControl,
boolean isAlt,
boolean isShift)
.
|
com.sun.jna.platform.win32.WinDef.RECT |
getClientRect(long hwnd)
.
|
long |
getDesktopWindow() |
long |
getMenu(long hwnd)
.
|
com.sun.jna.platform.win32.WinDef.RECT |
getRect(long hwnd)
.
|
long |
getSystemMenu(long hwnd,
boolean revert)
.
|
String |
getText(long hwnd)
.
|
boolean |
getWindowPlacement(long hwnd,
WinDefExt.WINDOWPLACEMENT placement)
.
|
boolean |
isEnabled(long hwnd)
.
|
boolean |
isMaximized(long hwnd)
.
|
boolean |
isMinimized(long hwnd)
.
|
boolean |
isNormal(long hwnd)
.
|
boolean |
isUnicode(long hwnd)
.
|
boolean |
isVisible(long hwnd)
.
|
boolean |
isWindow(long hwnd)
.
|
void |
keyDown(long hwnd,
int key)
.
|
void |
keyPress(long hwnd,
int key)
.
|
void |
keyUp(long hwnd,
int key)
.
|
void |
maximize(long hwnd)
.
|
void |
minimize(long hwnd)
.
|
void |
mouseDown(long hwnd,
int button,
int x,
int y,
boolean isControl,
boolean isAlt,
boolean isShift)
.
|
void |
mouseUp(long hwnd,
int button,
int x,
int y,
boolean isControl,
boolean isAlt,
boolean isShift)
.
|
void |
move(long hwnd,
int x,
int y,
int width,
int height)
.
|
void |
moveTo(long hwnd,
int x,
int y)
.
|
void |
restore(long hwnd)
.
|
void |
sizeTo(long hwnd,
int width,
int height)
.
|
void |
start(long hwnd,
String command,
String params,
String workingDir)
.
|
getCommCtl32, getDlg32, getKernel32, getShell32, getUser32, initCommonControls, longToHmenu, longToHwnd, makeLong, makeLParam, makeWParam, postMessage, sendMessage
public final void activate(long hwnd)
hwnd
- .public final void click(long hwnd, int button, int x, int y, boolean isControl, boolean isAlt, boolean isShift)
hwnd
- .button
- .x
- .y
- .isControl
- .isAlt
- .isShift
- .public final void close(long hwnd)
hwnd
- .public final void doubleClick(long hwnd, int button, int x, int y, boolean isControl, boolean isAlt, boolean isShift)
hwnd
- .button
- .x
- .y
- .isControl
- .isAlt
- .isShift
- .public final com.sun.jna.platform.win32.WinDef.RECT getClientRect(long hwnd)
hwnd
- .public final long getDesktopWindow()
public final long getMenu(long hwnd)
hwnd
- .public final com.sun.jna.platform.win32.WinDef.RECT getRect(long hwnd)
hwnd
- .public final long getSystemMenu(long hwnd, boolean revert)
hwnd
- .revert
- .public final String getText(long hwnd)
hwnd
- .public final boolean getWindowPlacement(long hwnd, WinDefExt.WINDOWPLACEMENT placement)
hwnd
- .placement
- .public final boolean isEnabled(long hwnd)
hwnd
- .public final boolean isMaximized(long hwnd)
hwnd
- .public final boolean isMinimized(long hwnd)
hwnd
- .public final boolean isNormal(long hwnd)
hwnd
- .public final boolean isUnicode(long hwnd)
hwnd
- .public final boolean isVisible(long hwnd)
hwnd
- .public final boolean isWindow(long hwnd)
hwnd
- .public final void keyDown(long hwnd, int key)
hwnd
- .key
- .public final void keyPress(long hwnd, int key)
hwnd
- .key
- .public final void keyUp(long hwnd, int key)
hwnd
- .key
- .public final void maximize(long hwnd)
hwnd
- .public final void minimize(long hwnd)
hwnd
- .public final void mouseDown(long hwnd, int button, int x, int y, boolean isControl, boolean isAlt, boolean isShift)
hwnd
- .button
- .x
- .y
- .isControl
- .isAlt
- .isShift
- .public final void mouseUp(long hwnd, int button, int x, int y, boolean isControl, boolean isAlt, boolean isShift)
hwnd
- .button
- .x
- .y
- .isControl
- .isAlt
- .isShift
- .public final void move(long hwnd, int x, int y, int width, int height)
hwnd
- .x
- .y
- .width
- .height
- .public final void moveTo(long hwnd, int x, int y)
hwnd
- .x
- .y
- .public final void restore(long hwnd)
hwnd
- .public final void sizeTo(long hwnd, int width, int height)
hwnd
- .width
- .height
- .Copyright © 2013. All rights reserved.