I just came across this ButtonMaster today and I have been switching over from using basic ingame macros and hotbars to this. Very nice but I came across a use case that I wanted to do.
So, I prolly wasted too much time on this when I could of just copied and pasted a buttons previous commands into the new button but I wanted to see it through so.
The initial goal was to be able to reuse other button commands sort of being able to link them together, and if I need to update a button the changes are in one place vs if they were copied and pasted from other buttons.
My case study is I have a button macro that does a several commands that ends macro(kissassist), stops casting etc. Just clean up. I also have a button that for camping out that does the same thing but adds /dgae /camp.
I wanted to reuse the button I had already made, we shall call it cleanup for example and not have to repaste the same command lines etc into the camp out button.
Below is my attempt at this and is based off the init.lua that is modified by Deth24 on using the themes.
Usage is if you wish to link to another button the command you use is /pullbtncmd # where # is the button number in the ini. so for this example we will use button # 130, which is listed in the ini as Button_130 key.
You will need to look in your ini to get the correct button you want linked.
NOTE: I made this to be recursive so it really has no max on how many buttons can be linked. Infinite loops beware. You need to have a button eventually that does not call another button. :NOTE
This is the 130 button in my example.
View attachment 56352
Main Button
View attachment 56347
This will call the commands saved to button 130 in the ini and run then in order.
This is button 130
View attachment 56348
so we should see a cheer, laugh emote then MQ should register a invalid command as I am checking for those then a final dance coming from the first button.
Clicking TestBtn1 has this behavior
View attachment 56349
and in MQ window
View attachment 56350
So that is what we see.
I attached the lua and a recommendation is I use a program called BeyondCompare, it does side by side comparsion so its useful to see the changes.
Code could use some work as I been out the coding game for a while but this was a fun project. Some menu items could be added to look up buttons etc but yeah this needs some testing but initial tests show promise.