RF 433Mhz not working

I tried using tutorials online to get an idea of how to use them but I cant seem to get them to work.
I tried 2 guides but only have one arduino so i just combined the transmitter and receiver code.

RH_ASK

#include <RH_ASK.h>
#include <SPI.h> // Not actually used but needed to compile

RH_ASK driver;

void setup()
{
    Serial.begin(9600);   // Debugging only
    if (!driver.init())
      {
         Serial.println("init failed");
      }
}

void loop()
{
    const char *msg = "Hello World!";
    
    driver.send((uint8_t *)msg, strlen(msg));
    driver.waitPacketSent();
     delay(1000);

    uint8_t buf[12];
    uint8_t buflen = sizeof(buf);
    if (driver.recv(buf, &buflen)) // Non-blocking
    {
      // Message with a good checksum received, dump it.
      Serial.print("Message: ");
      Serial.println((char*)buf);         
    }
}

http://wiki.seeedstudio.com/wiki/Grove_-_433MHz_Simple_RF_link_kit
and VirtualWire

int RF_TX_PIN = 12;
int RF_RX_PIN = 11;
 
void setup()
{
  vw_set_tx_pin(RF_TX_PIN); // Setup transmit pin
  vw_setup(2000); // Transmission speed in bits per second.

  Serial.begin(9600);
  Serial.println("setup");
  vw_set_rx_pin(RF_RX_PIN);  // Setup receive pin.
  vw_setup(2000); // Transmission speed in bits per second.
  vw_rx_start(); // Start the PLL receiver.
}
 
void loop()
{
  const char *msg = "hello";
  vw_send((uint8_t *)msg, strlen(msg));  // Send 'hello' every 400ms.
  delay(400);
 
  uint8_t buf[VW_MAX_MESSAGE_LEN];
  uint8_t buflen = VW_MAX_MESSAGE_LEN;
  if(vw_get_message(buf, &buflen)) // non-blocking I/O
  {
    int i;
    // Message with a good checksum received, dump HEX
    Serial.print("Got: ");
    for(i = 0; i < buflen; ++i)
    {
      Serial.print(buf[i], HEX);
      Serial.print(" ");
	  //Serial.print(buf[i]);
    }
    Serial.println("");
  }
}

The Arduino can't send data using the transmitter AND receive data using the receiver at the same time. So, of course the code did not work. Get another Arduino.

I see. thanks ill have to borrow my friends arduino I guess.