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.
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 ?
I mean do something like this in your event handler (code taken from tekAccept):
for i=1,STATICPOPUP_NUMDIALOGS do
local frame = _G["StaticPopup"..i]
if frame:IsVisible() and frame.which == "REPLACE_ENCHANT" then
StaticPopup_OnClick(frame, 1)
end
end
What I meant is: you can't delay a spell cast programatically. The only way to cast a spell is through a secure button, and the secure action button template doesn't provide any way to delay it.
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 ?
Source: http://www.worldofraids.com/wow-blue-tracker/us-forums/14287249343-cirvumventing-protected-functions-with-click.html
would do the trick, but the client is waiting for a response from the server before actually removing it, and I still end with a confirmation dialog.
/cry
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 ?
I give up, stupid Blizzard. The first click is legit, so why can't we bypass the confirm dialog ? It makes no sense. :mad: :mad: :mad:
But how do you achieve that ? If the /in command doesnt accept /use and /cast it probably means it's not possible programatically either.
Because it's two clicks not one.
What I meant is: you can't delay a spell cast programatically. The only way to cast a spell is through a secure button, and the secure action button template doesn't provide any way to delay it.