Click in macro not working

Hi all,
I can’t find anything in the patch notes, but as of 11.0.2, my random hearthstone macro isn’t working. I have tested all the parts individually, and the code starts erroring when I add the click part.
/run local f,h=RHS or CreateFrame("Button","RHS",nil,"SecureActionButtonTemplate"),{64488,162973,163045,165669,165670,168907,200630,172179};f:SetAttribute("type","toy");f:SetAttribute("toy",GetItemInfo(h[random(#h)]));/click RHS LeftButton 1

The /click command does not work anymore in macros if the /click would activate something which in turn would run a macro.

I had the same issue. The intention is to restrict addons which create macros on the fly.

Thanks. I found a discussion on Github that confirmed this behaviour.
Github

Macros can click, they just can’t click other macros.
That macro looks like it’s missing register for clicks

f:RegisterForClicks("AnyDown", "AnyUp")

but that’s going to push it over 255 chars. So you may want to do the create frame stuff via a WeakAura.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.