ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
PyWin32 Documentation
Win32 API
Objects
COMMTIMEOUTS
CopyProgressRoutine
DOCINFO
Dialog Header Tuple
Dialog Item Tuple
ExportCallback
FORM INFO 1
ImportCallback
LARGE INTEGER
NCB
NETRESOURCE
PRINTER DEFAULTS
PyACL
PyBITMAP
PyCEHANDLE
PyCOMSTAT
PyCOORD
PyCREDENTIAL
PyCREDENTIAL ATTRIBUTE
PyCREDENTIAL TARGET INFORMATION
PyCREDUI INFO
PyCRYPTPROTECT PROMPTSTRUCT
PyConsoleScreenBuffer
PyCredHandle
PyCtxtHandle
PyDCB
PyDEVMODE
PyDISPLAY DEVICE
PyDS HANDLE
PyDS NAME RESULT ITEM
PyEventLogRecord
PyGROUP INFO *
PyGROUP INFO 0
PyGROUP INFO 1
PyGROUP INFO 1002
PyGROUP INFO 1005
PyGROUP INFO 2
PyGROUP USERS INFO *
PyGROUP USERS INFO 0
PyGROUP USERS INFO 1
PyHANDLE
PyHDESK
PyHHNTRACK
PyHHN NOTIFY
PyHH AKLINK
PyHH FTS QUERY
PyHH POPUP
PyHH WINTYPE
PyHINTERNET
PyHKEY
PyHTHEME
PyHWINSTA
PyIID
PyINPUT RECORD
PyLOCALGROUP INFO *
PyLOCALGROUP INFO 0
PyLOCALGROUP INFO 1
PyLOCALGROUP INFO 1002
PyLOCALGROUP MEMBERS INFO *
PyLOCALGROUP MEMBERS INFO 0
PyLOCALGROUP MEMBERS INFO 1
PyLOCALGROUP MEMBERS INFO 2
PyLOCALGROUP MEMBERS INFO 3
PyLOGFONT
PyLSA HANDLE
PyLUID AND ATTRIBUTES
PyLsaLogon HANDLE
PyNMHDR
PyOVERLAPPED
PyOVERLAPPEDReadBuffer
PyPERF COUNTER DEFINITION
PyPERF OBJECT TYPE
PyPOINT
PyPROFILEINFO
PyPerfMonManager
PyRECT
PySCROLLINFO
PySECURITY ATTRIBUTES
PySECURITY DESCRIPTOR
PySERVER INFO *
PySERVER INFO 100
PySERVER INFO 101
PySERVER INFO 102
PySERVER INFO 402
PySERVER INFO 403
PySERVER INFO 502
PySERVER INFO 503
PySHARE INFO *
PySHARE INFO 0
PySHARE INFO 1
PySHARE INFO 2
PySHARE INFO 501
PySHARE INFO 502
PySID
PySID AND ATTRIBUTES
PySMALL RECT
PySTARTUPINFO
PySecBuffer
PySecBufferDesc
PyTOKEN GROUPS
PyTOKEN PRIVILEGES
PyTRUSTEE
PyTS HANDLE
PyTime
PyUSER INFO *
PyUSER INFO 0
PyUSER INFO 1
PyUSER INFO 10
PyUSER INFO 1003
PyUSER INFO 1005
PyUSER INFO 1006
PyUSER INFO 1007
PyUSER INFO 1008
PyUSER INFO 1009
PyUSER INFO 1010
PyUSER INFO 1011
PyUSER INFO 11
PyUSER INFO 2
PyUSER INFO 20
PyUSER INFO 3
PyUSER INFO 4
PyUSER MODALS INFO *
PyUSER MODALS INFO 0
PyUSER MODALS INFO 1
PyUSER MODALS INFO 2
PyUSER MODALS INFO 3
PyUSE INFO *
PyUSE INFO 0
PyUSE INFO 1
PyUSE INFO 2
PyUSE INFO 3
PyUnicode
PyWAVEFORMATEX
PyWKSTA INFO *
PyWKSTA INFO 100
PyWKSTA INFO 101
PyWKSTA INFO 102
PyWKSTA INFO 302
PyWKSTA INFO 402
PyWKSTA INFO 502
PyWKSTA TRANSPORT INFO *
PyWKSTA TRANSPORT INFO 0
PyWKSTA USER INFO *
PyWKSTA USER INFO 0
PyWKSTA USER INFO 1
PyWNDCLASS
RASDIALEXTENSIONS
RASDIALPARAMS
SC ACTION
SERVICE FAILURE ACTIONS
SERVICE STATUS
TRACKMOUSEEVENT
ULARGE INTEGER
WIN32 FIND DATA
connection
cursor

MyASPN >> Reference >> ActivePython 2.4 >> PyWin32 Documentation >> Win32 API >> Objects
ActivePython 2.4 documentation

PyINPUT_RECORD Object

Interface to the INPUT_RECORD struct used with console IO functions. Create using PyINPUT_RECORDType(EventType)

Comments

Only attributes that apply to each particular EventType can be accessed:
KEY_EVENT: KeyDown, RepeatCount, VirtualKeyCode, VirtualScanCode, ControlKeyState
MOUSE_EVENT: MousePosition, ButtonState, ControlKeyState, EventFlags
WINDOW_BUFFER_SIZE_EVENT: Size
FOCUS_EVENT: SetFocus
MENU_EVENT: CommandId

Properties

int EventType
One of KEY_EVENT, MOUSE_EVENT, WINDOW_BUFFER_SIZE_EVENT, MENU_EVENT, FOCUS_EVENT. Cannot be changed after object is created

boolean KeyDown
True for a key press, False for key release

int RepeatCount
Nbr of repeats generated (key was held down if >1)

int VirtualKeyCode
Device-independent key code, win32con.VK_*

int VirtualScanCode
Device-dependent scan code generated by keyboard

PyUnicode Char
Single unicode character generated by the keypress

int ControlKeyState
State of modifier keys, combination of CAPSLOCK_ON, ENHANCED_KEY, LEFT_ALT_PRESSED, LEFT_CTRL_PRESSED, NUMLOCK_ON, RIGHT_ALT_PRESSED, RIGHT_CTRL_PRESSED, SCROLLLOCK_ON, SHIFT_PRESSED

int ButtonState
Bitmask representing which mouse buttons were pressed.

int EventFlags
DOUBLE_CLICK, MOUSE_MOVED or MOUSE_WHEELED, or 0. If 0, indicates a mouse button press

PyCOORD MousePosition
Position in character coordinates

PyCOORD Size
New size of screen buffer in character rows/columns

boolean SetFocus
Reserved - Used only with type FOCUS_EVENT. This event is Reserved, and should be ignored.

int CommandId
Used only with event type MENU_EVENT, which is reserved and should not be used


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved