I used to send macros to chat box in several addons like this
Lua Code:
local strTemp ="/cast Feign Death"-- for example
DEFAULT_CHAT_FRAME.editBox:SetText(strTemp )-- sent to Chat Box
ChatEdit_SendText(DEFAULT_CHAT_FRAME.editBox,0)
But PTR 10 complains about a blocked command used by the addon (looks like a secure frame problem).
It still works with emote, if for example strTemp = "/sit"
Is it really a secure problem?
__________________
Zax - Addons List, not all maintained.
I used to send macros to chat box in several addons like this
Lua Code:
local strTemp ="/cast Feign Death"-- for example
DEFAULT_CHAT_FRAME.editBox:SetText(strTemp )-- sent to Chat Box
ChatEdit_SendText(DEFAULT_CHAT_FRAME.editBox,0)
But PTR 10 complains about a blocked command used by the addon (looks like a secure frame problem).
It still works with emote, if for example strTemp = "/sit"
Is it really a secure problem?
I'm more surprised that this would work in any version of WoW.
Spellcasts need at the very least a hardware event (keypress or click) no addon should be able to send a command like that unattended.
Unless I'm misunderstanding what your addon is trying to do.
I'm more surprised that this would work in any version of WoW.
You are right Dridzt, the given example doesn't work even on retail.
Sorry for this thread, I got confused in my tests - with all the errors generated by my addons on the PTR...
__________________
Zax - Addons List, not all maintained.