Before connecting a transistor, use a piece of wire to connect the pins, to simulate a button press on the machine.
When you find a working connection, then you can proceed with a transistor.
Or connect 4 wires to the pins, and measure their levels when a button is pressed and not pressed.