AddWinEventHook(self,
callback=None,
event=(1, 2147483647),
process_id=0,
thread_id=0,
hwnd=None,
obj_id=None)
Add an event hook and release hook to clean it up on object
death.
-
- Parameters:
callback -
Object that is called when a target event occurs
(type=function)
event -
Number of an event or range of events
(type=integer or 2-tuple of integer)
process_id -
Restrict notifications to those coming from this process
(type=integer)
thread_id -
Restrict notifications to those coming from this thread
(type=integer)
hwnd -
Filter on the window handle
(type=integer)
obj_id -
Filter on object type
(type=integer)
|