View Single Post
07-26-18, 08:27 PM   #5
Chokobo
A Murloc Raider
Join Date: Jul 2018
Posts: 9
Thanks for the link. I agree with you. That is most likely the answer. I looked at that page today, and I suppose the macro route would best suit my style.

However, when I attempt to use their example, I get a strange error. This is after placing a secure button in my Lua file. as shown (Almost Identical to theirs):

Code:
local macroBtn = CreateFrame("Button", "myMacroButton", UIParent, "SecureActionButtonTemplate")
macroBtn:SetAttribute("type1", "macro") -- left click causes macro
macroBtn:SetAttribute("macrotext1", "/s test") -- text for macro on left click
macroBtn:SetSize(50,24)
macroBtn:SetPoint("BOTTOMLEFT",50,0)
macroBtn:SetText("HOP")
No button appears on the screen, as I would expect it to. and it gives me this error, which I am researching now, but maybe you all know something about it.

Error:
Code:
Unknown: Couldn't find relative frame: $parentDetails
https://imgur.com/a/nxxqeSJ

I feel like I am missing something with the secure action template. I'm not sure what, it's probably simple, but is just going over my head currently.
  Reply With Quote