MouseEvents Property

Applies to:  Thread object
See also:  MouseEvents object

read-only

Returns an MouseEvents object for the thread.

Syntax:

object.MouseEvents

The MouseEvents syntax has these parts:

Part Description
object The name of a Thread object.

Remarks:

If the Thread object is the return value of GetAllThreads, then the object returned by the MouseEvents property will receive events relating to all threads on the system (equivalent to setting a global hook).

If the Thread object is the Thread property of a Window object, or the return value of ThisThread or WrapThread, then the object returned by the MouseEvents property will receive events relating only to a single thread.

Example:

Trapping mouse events 

 

Home Copyright and Disclaimer