Creating a Basic Button Clicking Macro
Playing WoW, particularly using TSM, one clicks a lot of buttons to be as productive as we are. I'm not going to cover every button, but I'm going to go over how to find and macro any clickable button. The first thing we're going to utilize is WoW's built in Frame Stack. This tells us all the frames our cursor is currently hovered over, and we can find Button names from the list to make macros for them. Here's an example.
Type /fstack and you will get a window that looks like this:
Right now I'm hovered over the TSMAuctioningPostButton, which I've just learned the name of! If I wanted to create a macro to click this button, I would just have to add a /click before the button name and voila:
You can do this with any button in game whether it be TradeSkillMaster, or quest hand in dialogues. This particular example is a bit unnecessary as TSM will bind this button to your scrollwheel.