Package pyHook :: Module HookManager :: Class HookEvent
[show private | hide private]
[frames | no frames]

Type HookEvent

object --+
         |
        HookEvent

Known Subclasses:
KeyboardEvent, MouseEvent

Holds information about a general hook event.
Method Summary
  __init__(self, msg, time, hwnd, window_name)
Initializes an event instance.
string GetMessageName(self)
Return name of the event
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Property Summary
  MessageName

Instance Variable Summary
integer Message: Keyboard or mouse event message
integer Time: Seconds since the epoch when the even current
integer Window: Window handle of the foreground window at the time of the event
string WindowName: Name of the foreground window at the time of the event

Method Details

__init__(self, msg, time, hwnd, window_name)
(Constructor)

Initializes an event instance.
Overrides:
__builtin__.object.__init__

GetMessageName(self)

Returns:
Name of the event
           (type=string)

Property Details

MessageName

Get Method:
GetMessageName(self)

Instance Variable Details

Message

Keyboard or mouse event message
Type:
integer

Time

Seconds since the epoch when the even current
Type:
integer

Window

Window handle of the foreground window at the time of the event
Type:
integer

WindowName

Name of the foreground window at the time of the event
Type:
string

Generated by Epydoc 2.1 on Wed Feb 23 16:53:23 2005 http://epydoc.sf.net