Run when the mouse moves over a hyperlink in the scrolling message frame or SimpleHTML frame

Signature:

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. "|cffffff00|Hquest:982:17|h[Deep Ocean, Vast Sea]|h|r") (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)