GetMouseFocus

From Warcraft Wiki
Jump to navigation Jump to search

Returns the frame that currently has mouse focus.

frame = GetMouseFocus()

Returns

frame
Frame🔗 - The frame that currently has the mouse focus.

Details

  • The frame must have enableMouse="true"

Example

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

/dump GetMouseFocus():GetName() -- WorldFrame