WindowSpy Object

See also:  

A global object which can be used to get other useful objects.

Methods:

GetAllThreads
GetChildWindows
GetTopLevelWindows
ThisThread
WrapThread
WrapWindow

 

Remarks:

Because WindowSpy is a global object, each of the methods above can be called without reference to a specific WindowSpy object.  Akemi Spy Library creates an instance of the WindowSpy object on initialization.

Example:

To retrieve all the keyboard events triggered by all applications running on the system, declare a class or form level variable to hold the KeyboardEvents object, and retrieve the KeyboardEvents object from GetAllThreads:

Option Explicit

Private WithEvents objmKeyboardEvents As KeyboardEvents

Private Sub Form_Load()
    Set objmKeyboardEvents = GetAllThreads.KeyboardEvents
End Sub

 

Home Copyright and Disclaimer