Run when the mouse moves over a hyperlink in the scrolling message frame or SimpleHTML frame.
Run when the mouse moves over a hyperlink in the scrolling message frame or SimpleHTML frame.
Signature:
Code
OnHyperlinkEnter(self, "linkData", "link")
Arguments:
self - Reference to the widget for which the script was run (frame)
linkData - Essential data (linktype:linkdata portion) of the hyperlink (e.g. "quest:982:17") (string)
link - Complete hyperlink text (e.g. "cffffff00Hquest:982:17h[Deep Ocean, Vast Sea]hr") (string, hyperlink)
Examples: -- Prints data about the hyperlink you enter in the default chat frame DEFAULT_CHAT_FRAME:SetScript("OnHyperlinkEnter", function(self, linkData, link) local color = link:match("c%x%x%x%x%x%x%x%x") or "" self:AddMessage("linkData: "..linkData) self:AddMessage(format("link: %s%s", color, link:gsub("",""))) end)