I was trying ReplaceEnchant() and found it was protected.
While I was looking for a solution on the web, I discovered a topic where Zootfizzle said it's fixed for 3.0.8. But I suppose he meant the StaticPopup1Button1:Click() workaround, not the protected function because as of now, none work :(
Any info regarding this issue ?
Just write a function that checks which static popup is shown and if it's the enchantment replacement popup, click the OK button and then do /script ClickFunction() in your macro.
I use the REPLACE_ENCHANT event so I know it's the replace popup. But I don't get the part where you ask for clicking the OK button. If you meant "programatically" click the OK button, I can't find how to achieve this without error. Is there really a way to refresh a weapon buff in just one click ?