Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-17-21, 08:08 PM   #1
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
Run a slash command from a button

Hi all

I currently have a macro to toggle the frame stack, I wish to build a button that will run /fstack rather than using a macro.

Further, I wish to have a button that will /logout: I have read that ForceLogout() is protected so I cannot just add it to a button onClick function.

Is there a way that I can build a button that will run a slash command?
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Run a slash command from a button


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