WoW:API GetMouseFocus

From AddOn Studio
Revision as of 03:57, 18 July 2005 by WoWWiki>Gello
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GetMouseFocus -Documentation by Gello-
frameID = GetMouseFocus();

Returns the frame that is currently receiving mouse events. The frame must have enableMouse="true"


Arguments
none

Results
frameID
frameID
Table - The frame that currently has the mouse focus.

Example

You can get the name of the mouse-enabled frame beneath the pointer with this:

message( "The mouse is over " .. GetMouseFocus():GetName() );
Result
The mouse is over WorldFrame

Template:WoW API