If your remote has 24 buttons it is almost certain that they are arranged in a scanned X-Y matrix, so applying logic 1 to a button contact is unlikely to work, whereas shorting two contacts will. Don't see how an Arduino alone could do that. Methinks relays would be needed. Directly sending IR...