Home | Trees | Index | Help |
|
---|
Package pyHook :: Module HookManager :: Class HookManager |
|
object
--+
|
HookManager
Method Summary | |
---|---|
Initializes an instance by setting up an empty set of handlers. | |
Unhook all registered hooks. | |
Registers a callback to the given function for the event with the given ID in the provided dictionary. | |
Unregisters a callback for the event with the given ID in the provided dictionary. | |
Begins watching for keyboard events. | |
Begins watching for mouse events. | |
Passes a keyboard event on to the appropriate handler if one is registered. | |
Passes a mouse event on to the appropriate handler if one is registered. | |
Registers the given function as the callback for all keyboard events. | |
Registers the given function as the callback for this keyboard event type. | |
Registers the given function as the callback for this keyboard event type. | |
Registers the given function as the callback for this keyboard event type. | |
Registers the given function as the callback for all mouse events. | |
Registers the given function as the callback for all mouse button events. | |
Registers the given function as the callback for all mouse button double click events. | |
Registers the given function as the callback for all mouse button down events. | |
Registers the given function as the callback for all mouse button up events. | |
Registers the given function as the callback for this mouse event type. | |
Registers the given function as the callback for this mouse event type. | |
Registers the given function as the callback for this mouse event type. | |
Registers the given function as the callback for this mouse event type. | |
Registers the given function as the callback for this mouse event type. | |
Registers the given function as the callback for this mouse event type. | |
Registers the given function as the callback for this mouse event type. | |
Registers the given function as the callback for this mouse event type. | |
Registers the given function as the callback for this mouse event type. | |
Registers the given function as the callback for this mouse event type. | |
Registers the given function as the callback for this mouse event type. | |
Stops watching for keyboard events. | |
Stops watching for mouse events. | |
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Instance Variable Summary | |
---|---|
boolean | key_hook : Is a keyboard hook set? |
dictionary | keyboard_funcs : Callbacks for keyboard events |
dictionary | mouse_funcs : Callbacks for mouse events |
boolean | mouse_hook : Is a mouse hook set? |
Method Details |
---|
__init__(self)
Initializes an instance by setting up an empty set of handlers.
|
__del__(self)
Unhook all registered hooks.
|
connect(self, switch, id, func)Registers a callback to the given function for the event with the given ID in the provided dictionary. Internal use only.
|
disconnect(self, switch, id)Unregisters a callback for the event with the given ID in the provided dictionary. Internal use only.
|
HookKeyboard(self)Begins watching for keyboard events. |
HookMouse(self)Begins watching for mouse events. |
KeyboardSwitch(self, msg, vk_code, scan_code, ascii, flags, time, hwnd, win_name)Passes a keyboard event on to the appropriate handler if one is registered.
|
MouseSwitch(self, msg, x, y, data, flags, time, hwnd, window_name)Passes a mouse event on to the appropriate handler if one is registered.
|
SubscribeKeyAll(self, func)Registers the given function as the callback for all keyboard events. Use the KeyAll property as a shortcut.
|
SubscribeKeyChar(self, func)Registers the given function as the callback for this keyboard event type. Use the KeyChar property as a shortcut.
|
SubscribeKeyDown(self, func)Registers the given function as the callback for this keyboard event type. Use the KeyDown property as a shortcut.
|
SubscribeKeyUp(self, func)Registers the given function as the callback for this keyboard event type. Use the KeyUp property as a shortcut.
|
SubscribeMouseAll(self, func)Registers the given function as the callback for all mouse events. Use the MouseAll property as a shortcut.
|
SubscribeMouseAllButtons(self, func)Registers the given function as the callback for all mouse button events. Use the MouseButtonAll property as a shortcut.
|
SubscribeMouseAllButtonsDbl(self, func)Registers the given function as the callback for all mouse button double click events. Use the MouseAllButtonsDbl property as a shortcut.
|
SubscribeMouseAllButtonsDown(self, func)Registers the given function as the callback for all mouse button down events. Use the MouseAllButtonsDown property as a shortcut.
|
SubscribeMouseAllButtonsUp(self, func)Registers the given function as the callback for all mouse button up events. Use the MouseAllButtonsUp property as a shortcut.
|
SubscribeMouseLeftDbl(self, func)Registers the given function as the callback for this mouse event type. Use the MouseLeftDbl property as a shortcut.
|
SubscribeMouseLeftDown(self, func)Registers the given function as the callback for this mouse event type. Use the MouseLeftDown property as a shortcut.
|
SubscribeMouseLeftUp(self, func)Registers the given function as the callback for this mouse event type. Use the MouseLeftUp property as a shortcut.
|
SubscribeMouseMiddleDbl(self, func)Registers the given function as the callback for this mouse event type. Use the MouseMiddleDbl property as a shortcut.
|
SubscribeMouseMiddleDown(self, func)Registers the given function as the callback for this mouse event type. Use the MouseMiddleDown property as a shortcut.
|
SubscribeMouseMiddleUp(self, func)Registers the given function as the callback for this mouse event type. Use the MouseMiddleUp property as a shortcut.
|
SubscribeMouseMove(self, func)Registers the given function as the callback for this mouse event type. Use the MouseMove property as a shortcut.
|
SubscribeMouseRightDbl(self, func)Registers the given function as the callback for this mouse event type. Use the MouseRightDbl property as a shortcut.
|
SubscribeMouseRightDown(self, func)Registers the given function as the callback for this mouse event type. Use the MouseRightDown property as a shortcut.
|
SubscribeMouseRightUp(self, func)Registers the given function as the callback for this mouse event type. Use the MouseRightUp property as a shortcut.
|
SubscribeMouseWheel(self, func)Registers the given function as the callback for this mouse event type. Use the MouseWheel property as a shortcut.
|
UnhookKeyboard(self)Stops watching for keyboard events. |
UnhookMouse(self)Stops watching for mouse events. |
Property Details |
---|
KeyAll
|
KeyChar
|
KeyDown
|
KeyUp
|
MouseAll
|
MouseAllButtons
|
MouseAllButtonsDbl
|
MouseAllButtonsDown
|
MouseAllButtonsUp
|
MouseLeftDbl
|
MouseLeftDown
|
MouseLeftUp
|
MouseMiddleDbl
|
MouseMiddleDown
|
MouseMiddleUp
|
MouseMove
|
MouseRightDbl
|
MouseRightDown
|
MouseRightUp
|
MouseWheel
|
Instance Variable Details |
---|
key_hookIs a keyboard hook set?
|
keyboard_funcsCallbacks for keyboard events
|
mouse_funcsCallbacks for mouse events
|
mouse_hookIs a mouse hook set?
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed Feb 23 16:53:22 2005 | http://epydoc.sf.net |