Originally Posted by Zax
Hello,
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.