How to get button id?

How to get button id for the clicked button command

follow the buttons tutorial carefully.