Wikia

WoWWiki

Watchlist Recent changes

API GetMouseFocus

Main Menue



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

frameID = GetMouseFocus();

Parameters Edit

Arguments Edit

none

Results Edit

frameID 
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+.

Example Edit

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

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

Result Edit

The mouse is over WorldFrame

Pages on WoWWiki

95,750pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
58,025photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki