For someone ho might have the same question, I succedded with the following code
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
int i;
void setup() {
Serial.begin(9600);
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(10);
// Optional set pulse length.
mySwitch.setPulseLength(355);
// Optional set protocol (default is 1, will work for most outlets)
mySwitch.setProtocol(1);
}
void loop() {
i = 0;
while (i < 10) {
mySwitch.send(6249743, 24); //buttonA
//mySwitch.send(6249742, 24); //buttonB
//mySwitch.send(6249741, 24); //buttonC
//mySwitch.send(6249740, 24); //buttonD
i++;
delay(400);
}
delay(3000);
}