最近想编写一个植物大战僵尸中控制玉米大炮自动发射的小工具,研究了一下Python下的windows API,部分资料整理如下:
Help on module win32gui:
NAME
win32gui
FILE
c:\python27\lib\site-packages\win32\win32gui.pyd
CLASSES
exceptions.Exception(exceptions.BaseException)
pywintypes.error
class error(exceptions.Exception)
| Method resolution order:
| error
| exceptions.Exception
| exceptions.BaseException
| __builtin__.object
|
| Methods defined here:
|
| __init__(self, *args, **kw)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object (if defined)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from exceptions.Exception:
|
| __new__ = <built-in method __new__ of type object>
| T.__new__(S, ...) -> a new object with type S, a subtype of T
|
| ----------------------------------------------------------------------
| Methods inherited from exceptions.BaseException:
|
| __delattr__(...)
| x.__delattr__('name') <==> del x.name
|
| __getattribute__(...)
| x.__getattribute__('name') <==> x.name
|
| __getitem__(...)
| x.__getitem__(y) <==> x[y]
|
| __getslice__(...)
| x.__getslice__(i, j) <==> x[i:j]
|
| Use of negative indices is not supported.
|
| __reduce__(...)
|
| __repr__(...)
| x.__repr__() <==> repr(x)
|
| __setattr__(...)
| x.__setattr__('name', value) <==> x.name = value
|
| __setstate__(...)
|
| __str__(...)
| x.__str__() <==> str(x)
|
| __unicode__(...)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from exceptions.BaseException:
|
| __dict__
|
| args
|
| message
FUNCTIONS
AbortPath(...)
AlphaBlend(...)
AngleArc(...)
AnimateWindow(...)
AppendMenu(...)
Arc(...)
ArcTo(...)
BeginPaint(...)
BeginPath(...)
BitBlt(...)
BringWindowToTop(...)
CallWindowProc(...)
CheckMenuItem(...)
CheckMenuRadioItem(...)
ChildWindowFromPoint(...)
ChildWindowFromPointEx(...)
Chord(...)
ClientToScreen(...)
CloseFigure(...)
CloseWindow(...)
CombineRgn(...)
CombineTransform(...)
CommDlgExtendedError(...)
CopyIcon(...)
CreateAcceleratorTable(...)
CreateBitmap(...)
CreateBrushIndirect(...)
CreateCaret(...)
CreateCompatibleBitmap(...)
CreateCompatibleDC(...)
CreateDC(...)
CreateDialogIndirect(...)
CreateDialogIndirectParam(...)
CreateEllipticRgnIndirect(...)
CreateFontIndirect(...)
CreateHatchBrush(...)
CreateIconFromResource(...)
CreateIconIndirect(...)
CreateMenu(...)
CreatePatternBrush(...)
CreatePen(...)
CreatePolygonRgn(...)
CreatePopupMenu(...)
CreateRectRgnIndirect(...)
CreateRoundRectRgn(...)
CreateSolidBrush(...)
CreateWindow(...)
CreateWindowEx(...)
DefWindowProc(...)
DeleteDC(...)
DeleteMenu(...)
DeleteObject(...)
DestroyAcceleratorTable(...)
DestroyCaret(...)
DestroyIcon(...)
DestroyMenu(...)
DestroyWindow(...)
DialogBox(...)
DialogBoxIndirect(...)
DialogBoxIndirectParam(...)
DialogBoxParam(...)
DispatchMessage(...)
DragAcceptFiles(...)
DragDetect(...)
DrawAnimatedRects(...)
DrawEdge(...)
DrawFocusRect(...)
DrawIcon(...)
DrawIconEx(...)
DrawMenuBar(...)
DrawText(...)
DrawTextW(...)
Edit_GetLine(...)
Ellipse(...)
EnableMenuItem(...)
EnableWindow(...)
EndDialog(...)
EndPaint(...)
EndPath(...)
EnumChildWindows(...)
EnumFontFamilies(...)
EnumPropsEx(...)
EnumThreadWindows(...)
EnumWindows(...)
EqualRgn(...)
ExtCreatePen(...)
ExtFloodFill(...)
ExtTextOut(...)
ExtractIcon(...)
ExtractIconEx(...)
FillPath(...)
FillRect(...)
FillRgn(...)
FindWindow(...)
FindWindowEx(...)
FlashWindow(...)
FlashWindowEx(...)
FlattenPath(...)
FrameRect(...)
FrameRgn(...)
GetActiveWindow(...)
GetArcDirection(...)
GetBkColor(...)
GetBkMode(...)
GetCapture(...)
GetCaretPos(...)
GetClassLong(...)
GetClassName(...)
GetClientRect(...)
GetCurrentObject(...)
GetCurrentPositionEx(...)
GetCursor(...)
GetCursorInfo(...)
GetCursorPos(...)
GetDC(...)
GetDesktopWindow(...)
GetDlgCtrlID(...)
GetDlgItem(...)
GetDlgItemInt(...)
GetDlgItemText(...)
GetDoubleClickTime(...)
GetFocus(...)
获取当前焦点窗口的句柄
GetForegroundWindow(...)
GetGraphicsMode(...)
GetIconInfo(...)
GetLayeredWindowAttributes(...)
GetLayout(...)
GetMapMode(...)
GetMenu(...)
GetMenuDefaultItem(...)
GetMenuInfo(...)
GetMenuItemCount(...)
GetMenuItemID(...)
GetMenuItemInfo(...)
GetMenuItemRect(...)
GetMenuState(...)
GetMessage(...)
GetMiterLimit(...)
GetModuleHandle(...)
GetNextDlgGroupItem(...)
GetNextDlgTabItem(...)
GetObject(...)
GetObjectType(...)
GetOpenFileName(...)
GetOpenFileNameW(...)
GetParent(...)
GetPath(...)
GetPixel(...)
GetPolyFillMode(...)
GetROP2(...)
GetRgnBox(...)
GetSaveFileNameW(...)
GetScrollInfo(...)
GetStockObject(...)
GetStretchBltMode(...)
GetSubMenu(...)
GetSysColor(...)
GetSysColorBrush(...)
GetSystemMenu(...)
GetTextAlign(...)
GetTextCharacterExtra(...)
GetTextColor(...)
GetTextExtentPoint32(...)
GetTextFace(...)
GetTextMetrics(...)
GetUpdateRgn(...)
GetViewportExtEx(...)
GetViewportOrgEx(...)
GetWindow(...)
GetWindowDC(...)
GetWindowExtEx(...)
GetWindowLong(...)
GetWindowOrgEx(...)
GetWindowPlacement(...)
GetWindowRect(...)
GetWindowRgn(...)
GetWindowText(...)
GetWindowTextLength(...)
GetWorldTransform(...)
GradientFill(...)
HIWORD(...)
HideCaret(...)
ImageList_Add(...)
ImageList_Create(...)
ImageList_Destroy(...)
ImageList_Draw(...)
ImageList_DrawEx(...)
ImageList_GetIcon(...)
ImageList_GetImageCount(...)
ImageList_LoadBitmap(...)
ImageList_LoadImage(...)
ImageList_Remove(...)
ImageList_Replace(...)
ImageList_ReplaceIcon(...)
ImageList_SetBkColor(...)
ImageList_SetOverlayImage(...)
InitCommonControls(...)
InitCommonControlsEx(...)
InsertMenu(...)
InsertMenuItem(...)
InvalidateRect(...)
InvalidateRgn(...)
InvertRect(...)
InvertRgn(...)
IsChild(...)
IsIconic(...)
IsWindow(...)
IsWindowEnabled(...)
IsWindowVisible(...)
LOGFONT(...)
LOWORD(...)
LineTo(...)
ListView_SortItems(...)
ListView_SortItemsEx(...)
LoadCursor(...)
LoadIcon(...)
LoadImage(...)
LoadMenu(...)
MaskBlt(...)
MessageBeep(...)
MessageBox(...)
ModifyMenu(...)
ModifyWorldTransform(...)
MoveToEx(...)
MoveWindow(...)
OffsetRgn(...)
PaintDesktop(...)
PaintRgn(...)
PatBlt(...)
PathToRegion(...)
PeekMessage(...)
Pie(...)
PlgBlt(...)
PolyBezier(...)
PolyBezierTo(...)
Polygon(...)
Polyline(...)
PolylineTo(...)
PostMessage(...)
PostQuitMessage(...)
PostThreadMessage(...)
PtInRect(...)
PtInRegion(...)
PumpMessages(...)
PumpWaitingMessages(...)
PyGetArraySignedLong(...)
PyGetBufferAddressAndLen(...)
PyGetMemory(...)
PyGetString(...)
PyMakeBuffer(...)
PySetMemory(...)
PySetString(...)
RectInRegion(...)
Rectangle(...)
RedrawWindow(...)
RegisterClass(...)
RegisterDeviceNotification(...)
RegisterWindowMessage(...)
ReleaseCapture(...)
ReleaseDC(...)
RemoveMenu(...)
ReplyMessage(...)
RestoreDC(...)
RoundRect(...)
SaveDC(...)
ScreenToClient(...)
ScrollWindowEx(...)
SelectObject(...)
SendMessage(...)
SendMessageTimeout(...)
SetActiveWindow(...)
SetArcDirection(...)
SetBkColor(...)
SetBkMode(...)
SetCapture(...)
SetCaretPos(...)
SetCursor(...)
SetDlgItemInt(...)
SetDlgItemText(...)
SetDoubleClickTime(...)
SetFocus(...)
将指定窗口设置为焦点窗口
SetForegroundWindow(...)
SetGraphicsMode(...)
SetLayeredWindowAttributes(...)
SetLayout(...)
SetMapMode(...)
SetMenu(...)
SetMenuDefaultItem(...)
SetMenuInfo(...)
SetMenuItemBitmaps(...)
SetMenuItemInfo(...)
SetMiterLimit(...)
SetParent(...)
SetPixel(...)
SetPixelV(...)
SetPolyFillMode(...)
SetROP2(...)
SetRectRgn(...)
SetScrollInfo(...)
SetStretchBltMode(...)
SetTextAlign(...)
SetTextCharacterExtra(...)
SetTextColor(...)
SetViewportExtEx(...)
SetViewportOrgEx(...)
SetWindowExtEx(...)
SetWindowLong(...)
SetWindowOrgEx(...)
SetWindowPlacement(...)
SetWindowPos(...)
SetWindowRgn(...)
SetWindowText(...)
SetWorldTransform(...)
Shell_NotifyIcon(...)
ShowCaret(...)
ShowWindow(...)
StretchBlt(...)
StrokeAndFillPath(...)
StrokePath(...)
SystemParametersInfo(...)
TrackPopupMenu(...)
TranslateAccelerator(...)
TranslateMessage(...)
TransparentBlt(...)
UnregisterClass(...)
UnregisterDeviceNotification(...)
UpdateLayeredWindow(...)
UpdateWindow(...)
ValidateRgn(...)
WNDCLASS(...)
WaitMessage(...)
WidenPath(...)
WindowFromDC(...)
WindowFromPoint(...)
lpstr(...)
set_logger(...)
DATA
CLR_NONE = -1
ILC_COLOR = 0
ILC_COLOR16 = 16
ILC_COLOR24 = 24
ILC_COLOR32 = 32
ILC_COLOR4 = 4
ILC_COLOR8 = 8
ILC_COLORDDB = 254
ILC_MASK = 1
ILD_BLEND = 4
ILD_BLEND25 = 2
ILD_BLEND50 = 4
ILD_FOCUS = 2
ILD_MASK = 16
ILD_NORMAL = 0
ILD_SELECTED = 4
ILD_TRANSPARENT = 1
IMAGE_BITMAP = 0
IMAGE_CURSOR = 2
IMAGE_ICON = 1
LR_CREATEDIBSECTION = 8192
LR_DEFAULTCOLOR = 0
LR_DEFAULTSIZE = 64
LR_LOADFROMFILE = 16
LR_LOADMAP3DCOLORS = 4096
LR_LOADTRANSPARENT = 32
LR_MONOCHROME = 1
LR_SHARED = 32768
LR_VGACOLOR = 128
NIF_ICON = 2
NIF_INFO = 16
NIF_MESSAGE = 1
NIF_STATE = 8
NIF_TIP = 4
NIIF_ERROR = 3
NIIF_ICON_MASK = 15
NIIF_INFO = 1
NIIF_NONE = 0
NIIF_NOSOUND = 16
NIIF_WARNING = 2
NIM_ADD = 0
NIM_DELETE = 2
NIM_MODIFY = 1
NIM_SETVERSION = 4
TPM_BOTTOMALIGN = 32
TPM_CENTERALIGN = 4
TPM_LEFTALIGN = 0
TPM_LEFTBUTTON = 0
TPM_NONOTIFY = 128
TPM_RETURNCMD = 256
TPM_RIGHTALIGN = 8
TPM_RIGHTBUTTON = 2
TPM_TOPALIGN = 0
TPM_VCENTERALIGN = 16
UNICODE = False
dllhandle = 514064384
[Finished in 1.8s]