Trees | Index | Help |
|
---|
Package pyAA :: Module AA |
|
Classes | |
---|---|
AAbase |
Basic class that supports setting hooks and automatically removing hooks when the object dies. |
AccessibleObject |
Represents the properties and actions of some user interface object. |
Constants |
Holds all public pyAA constants without polluting the namespace. |
WinEvent |
Holds information about an event. |
Function Summary | |
---|---|
Wrapper for the MSSA function to get an object given an event. | |
AccessibleObject |
Wrapper for the MSAA function to get an object from a point on the display. |
Wrapper for the MSSA function to get an object from a window handle. | |
Add a hook to be invoked when an event matching the criteria occurs. | |
Disable a previously established hook. | |
Dispatches events received from our C callback. |
Variable Summary | |
---|---|
dict |
ObjIdNames = {0: 'OBJID_WINDOW', -1: 'OBJID_SYSMENU', -1...
|
dict |
WinEventNames = {32768: 'EVENT_OBJECT_CREATE', 32769: 'E...
|
Function Details |
---|
AccessibleObjectFromEvent(hwnd, obj_id, child_id)Wrapper for the MSSA function to get an object given an event.
|
AccessibleObjectFromPoint(point)Wrapper for the MSAA function to get an object from a point on the display. The object returned is the leaf object in the the MSAA tree (I think).
|
AccessibleObjectFromWindow(hwnd, obj_id)Wrapper for the MSSA function to get an object from a window handle.
|
AddWinEventHook(callback, event=(1, 2147483647), process_id=0, thread_id=0, hwnd=None, obj_id=None)Add a hook to be invoked when an event matching the criteria occurs.
|
DeleteWinEventHook(handle)Disable a previously established hook.
|
event_dispatch(event_handle, event_id, hwnd, obj_id, child_id, thread_id, event_time)Dispatches events received from our C callback. The old version of this function used a number of locks to prevent more than one re-entrant call from handling any callbacks. That approach proved problematic for unknown reasons. This version forgoes using locks because 1) this function cannot be re-entered since the GIL is held when it is invoked by the C callback and 2) supposedly MSAA serializes all out-of-context callbacks anyways, which are the only kind we get. Events are guaranteed to be delivered in order for a registered hook handle but no such guarantee is made on ordering across handles. See the instance variables in theWinEvent class for a description of the
parameters of this function.
|
Variable Details |
---|
ObjIdNames
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Mar 10 23:08:34 2005 | http://epydoc.sf.net |