→ WoW API
Returns the frame that is currently receiving mouse events. The frame must have enableMouse="true"
frameID = GetMouseFocus();
- Table - The frame that currently has the mouse focus. *NOTE: This can momentarily return nil if GetMouseFocus() is called when selecting "Inspect" on another player. This is likely an API bug in 4.1+.
You can get the name of the mouse-enabled frame beneath the pointer with this:
message( "The mouse is over " .. GetMouseFocus():GetName() );
The mouse is over WorldFrame
Community content is available under CC-BY-SA unless otherwise noted.