WoW:USERAPI RunSlashCmd: Difference between revisions

m
winner
(New page: Thanks to cladhaire and Josh_Borke for all the effort in coming up with this code that allows you to pass a /command to wow from a lua script. The following code is cladhaire's final produ...)
 
m (winner)
Line 24: Line 24:


RunSlashCmd("/addon do this")
RunSlashCmd("/addon do this")
Try
local t={}; t.GetText = function(self) return self.text end; local function RunSlash(slash) t.text = slash; ChatEdit_ParseText(t) end
Anonymous user