How to make clickable items inside the player inventory ?

Hi, I woul to know how to make clickable items inside the player inventory ? Who execute the command I want. Thank
Continue to help post