Just add an instance variable id to your button's, set the first button to id 1, second to id 2, when you make your event, add button compare instance variable id 1 for the first button, 2 for the second, and it will work like a charm.
sorry i dont get it please make a sample capx