AddOns
AddOn Manager
Latest 200
Browse
Upload AddOn
Search AddOns
Projects
Author Portals
Git Repositories
SVN Repositories
Options
Email Feeds
Preference
Download History
News
Forums
New posts
Today's Posts
Search Forum
Categories
General
AddOns, Comps, Macros
Featured Projects
Developer
Site Forums
Mark Forums Read
Subscribed Threads
Open Buddy List
Members List
Help
Login
Sign up
WoWInterface
»
Developer Discussions
»
Lua/XML Help
»
I was curious if it's possible to....
Go to Page...
Reply
View First Unread
Thread Tools
Display Modes
04-09-09, 11:37 PM
#
1
EchoFive
A Murloc Raider
Join Date: Mar 2007
Posts: 7
I was curious if it's possible to....
Run slash commands (eg for another addon, like /dkp or something) from within the addon I am working on?
I tried the ConsoleExec, but that did not seem to do the trick.
Any advice?
EchoFive
View Public Profile
Send a private message to EchoFive
Find More Posts by EchoFive
04-10-09, 02:50 AM
#
2
Slakah
A Molten Giant
Join Date: Aug 2007
Posts: 863
Yes, but you need to find out what the slash command is stored as in the global table SlashCmdList.
Most addons use the addon name in caps, so you would do:
lua Code:
SlashCmdList.ADDONNAME
(
"Message you want sending to the slash command handler"
)
Hope this helps.
Slakah
View Public Profile
Send a private message to Slakah
Find More Posts by Slakah
04-10-09, 01:17 PM
#
3
EchoFive
A Murloc Raider
Join Date: Mar 2007
Posts: 7
You sir, are a genius! Thanks so much, that actually solved the last big roadblock to this addon I am working on.
EchoFive
View Public Profile
Send a private message to EchoFive
Find More Posts by EchoFive
Reply
WoWInterface
»
Developer Discussions
»
Lua/XML Help
» I was curious if it's possible to....
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
vB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off