Quantcast
WoWInterface - View Single Post - Run a slash command from a button
View Single Post
06-17-21, 08:08 PM   #1
Walkerbo
A Chromatic Dragonspawn
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 183
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