Thread Tools Display Modes
09-26-12, 10:06 AM   #1
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
OnClick Support

i posted this in another thread that i will delete, i believe this is the correct place


ok so here is the senario, i am really wanting to add a little onclick support from my addon to auto enter text to the chat box to activate Reflux


such as

function WARRIOR_OnClick()
Generic_Setup();
Warrior_Setup();
UItatDB.HasBeenRun = 1;
ReloadUI();
end

this is my current setup. and it is fuctional in the method that i want it to be

however i would really like to have it enter a reflux switch instead

Such as

function WARRIOR_OnClick()
UItatDB.HasBeenRun = 1;
(( TYPE /Reflux Switch UItat_Warrior Then ENTER)) -- this is just an example of the wish not actual coding
ReloadUI();
end

is there any way to accomplish this
as so far i have not found any way to accomplish this
__________________
  Reply With Quote
09-26-12, 11:09 AM   #2
Barjack
A Black Drake
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 89
There is probably a way to do this, but honestly I'm not sure how as I've never done anything like that before myself. However, it might be worth considering that in this specific case, you can probably avoid going via the command line entirely and calling Reflux's chat handler directly. For example, instead of trying to type stuff into an edit box, just call SlashCmdList["REFLUX"]("switch UItat_Warrior")
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » OnClick Support


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