DamageCase
27-02-2007, 10:48 PM
Hi all,
I'm trying to make a little enhancment for a already existing mod.
It's pretty small, but hey you gotta start somewhere.
The problem I have now is that I can't get the addon to send a slash command to the ui.
The idea is that I fill in 2 input fields and that input is compressed into a slash command for another addon.
Everything works fine, but what channel do I need to use for that?
If I use this example here:
SendChatMessage("/mycommand", "WHISPER", "Common", Unitname("player"));
It won't work, it will simply send the /mycommand as a whisper to myself. And like this I've tried other variations too.
SendChatMessage is prolly not the way to go ;p But it was the best I could come up with :((((
Anyone have clou how I could format a string and send that as a slash command to the ui via LUA?
Any help will be appreciated :)
I'm trying to make a little enhancment for a already existing mod.
It's pretty small, but hey you gotta start somewhere.
The problem I have now is that I can't get the addon to send a slash command to the ui.
The idea is that I fill in 2 input fields and that input is compressed into a slash command for another addon.
Everything works fine, but what channel do I need to use for that?
If I use this example here:
SendChatMessage("/mycommand", "WHISPER", "Common", Unitname("player"));
It won't work, it will simply send the /mycommand as a whisper to myself. And like this I've tried other variations too.
SendChatMessage is prolly not the way to go ;p But it was the best I could come up with :((((
Anyone have clou how I could format a string and send that as a slash command to the ui via LUA?
Any help will be appreciated :)