Disenchanting macro issue, any help appreciated

#showtooltip
/run local f=MyItem or CreateFrame(“Button”,“MyItem”,nil,“SecureActionButtonTemplate”) f:SetAttribute(“type”,“click”) f:SetAttribute(“clickbutton”,GetMouseFocus())
/cast Disenchant
/click MyItem

What the macro did was when you hovered over the item to disenchant it would disenchant it without the need to click it a second time. Much like how /cast [@cursor] would work for heroic leap. Does anyone have any ideas to get it up and running again?

Last I looked, the Disenchant spell hasn’t changed. Does that really not work anymore?

Might be because of the /click changed. Maybe try putting a 1 at the end of the /click line

Still doesn’t seem to work. It occurred with Dragonflight.

#showtooltip
/run local f=MyItem or CreateFrame("Button","MyItem",nil,"SecureActionButtonTemplate") f:SetAttribute("type","click") f:SetAttribute("clickbutton",GetMouseFocus()) f:RegisterForClicks("AnyDown","AnyUp") 
/cast Disenchant
/click MyItem

No, where would l add that to the macro?

/click MyItem

Change this line to:

/click MyItem X 1

Keep in mind this seems bugged and may cease to work in the future. If so you can remove the X 1.

Also if you ever /console ActionButtonUseKeyDown 0 or install an addon that does it for you, this macro will stop working too.

The secure stuff (and taint) this expansion is a dumpster fire.

2 Likes

Thanks, that worked. Weird that it required X 1 this xpac but none previously.

This does not work for me…

#showtooltip
/run local f=MyItem or CreateFrame(“Button”,“MyItem”,nil,“SecureActionButtonTemplate”) f:SetAttribute(“type”,“click”) f:SetAttribute(“clickbutton”,GetMouseFocus())
/cast Disenchant
/click MyItem X 1

This seems to be broken as well:
/run local f=DeM or CreateFrame(“Button”,“DeM”,nil,“SecureActionButtonTemplate”) f:SetAttribute(“type”,“click”) f:SetAttribute(“clickbutton”,GetMouseFocus())
/cast Disenchant
/click DeM

Dunno what to say, it worked for me when he had me add the X 1. Could always just copy paste mine and see if it works and just add the X 1.

It’s because the forums replace quotes with smart quotes when they’re not wrapped in code tags. Fix the quotes and one of them will work.

#showtooltip
/run local f=MyItem or CreateFrame("Button","MyItem",nil,"SecureActionButtonTemplate") f:SetAttribute("type","click") f:SetAttribute("clickbutton",GetMouseFocus())
/cast Disenchant
/click MyItem X 1
#showtooltip
/run local f=DeM or CreateFrame("Button","DeM",nil,"SecureActionButtonTemplate") f:SetAttribute("type","click") f:SetAttribute("clickbutton",GetMouseFocus())
/cast Disenchant
/click DeM
3 Likes

Thank you for sharing this.

Hey, just for those that may not know for later… I spammed this key and it started equipping gear and I ended up disenchanted my stuff that I had no intention of DE’ing. So… be careful. Now I have a week to wait on my alt’s staff that I had just crafted with a Shadowflame spark ugh

https://us.battle.net/support/en/restoration