Wikia

WoWWiki

API GetMouseFocus

Talk0
98,452pages on
this wiki

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

frameID = GetMouseFocus();

Parameters

Arguments

none

Results

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

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
Advertisement | Your ad here

Photos

Add a Photo
61,965photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki