Using Keyboard and Sending Key's?

I want to send the Keyboard Strokes to the Arduino Connected with the PC and then using the Virtual Wire i want to send these key strokes to the receiving arduino.

Anybody with code?

i can handle the Virtual Wire thing ,just give me the code to Capture KeySTROKES!

THANK's!

Just use a terminal emulator instead of the serial monitor.

You want to say that i use the Hyper Terminal , i'm using Linux buddy, some help at that?, it's PUPPY

however can use the Serial Windows SEND but dn't want to use that, just want the Key's to be pressed and then pass them put to the connected Arduino via. USB.

You want to say that i use the Hyper Terminal , i'm using Linux buddy, some help at that?, it's PUPPY

My reply was a ten word sentence - you'll see that "hyperterm" was not mentioned.

buddy

I don't think I've ever dived with you, have I?

So what is there that can be done! AWOL

What are you expecting to recognize that a key on the PC has been pressed?

Something needs to detect key presses, convert the key press information to a meaningful value, and send that data to the serial port, so that the Arduino can receive it. It isn't going to happen automatically.

So what is there that can be done

You could run a terminal emulator connected to your serial port on your Linux system.

You could even run Wine on your linux system, and run hyperterm under that.

okey
i will try that, just keep an eye over my post if you can.i'll post updates.

Hi,
I'm an Arduino newbie, i use a mac and I also need help with listening for keystrokes and sending them to Arduino via USB. Ideally, i would like this to work regardless of which program I am actually typing in. I guess i need something like a keystroke logger running in the background and sending keystrokes to the serial port, but I was wondering what my simplest option is.
Many thanks!

The CODE below writes o when a button is pressed on this processing application to a port that can be a serial port and that will send that "o" to the arduino board if on that port the board is connected to.

import processing.serial.*;
Serial port;

color currentcolor;

CircleButton B1, B2, B3;
boolean locked = false;

void setup()
{
  size(400, 100);
  smooth();

  color baseColor = color(102);
  currentcolor = baseColor;
// List all the available serial ports in the output pane. 
  // You will need to choose the port that the  board is 
  // connected to from this list. The first port in the list is 
  // port #0 and the third port in the list is port #2. 
  println(Serial.list()); 
  
  // Open the port that the board is connected to (in this case 1
  // which is the second open port in the array) 
  // Make sure to open the port at the same speed Wiring is using (9600bps) 
  port = new Serial(this, Serial.list()[2], 9600);
  // Define and create circle button
  color buttoncolor = color(204);
  color highlight = color(153);
  ellipseMode(CENTER);
  B1 = new CircleButton(50, 50, 70, buttoncolor, highlight);
  text("Stop",70,60);
}

void draw()
{
  background(currentcolor);
  stroke(255);
  update(mouseX, mouseY);
  B1.display();
}

void update(int x, int y)
{
  if(locked == false) {
    B1.update();
  } 
  else {
    locked = false;
  }

 if(mousePressed) {
    if(B1.pressed()) {
      currentcolor = B1.basecolor;
      port.write('O');
    } 
 }
}
class Button
{
  int x, y;
  int size;
  color basecolor, highlightcolor;
  color currentcolor;
  boolean over = false;
  boolean pressed = false;   

  void update() 
  {
    if(over()) {
      currentcolor = highlightcolor;
    } 
    else {
      currentcolor = basecolor;
    }
  }

  boolean pressed() 
  {
    if(over) {
      locked = true;
      return true;
    }else {
      locked = false;
      return false;
    }    
  }

  boolean over() 
  { 
    return true; 
  }

  boolean overCircle(int x, int y, int diameter) 
  {
    float disX = x - mouseX;
    float disY = y - mouseY;
    if(sqrt(sq(disX) + sq(disY)) < diameter/2 ) {
      return true;
    } 
    else {
      return false;
    }
  }

}

class CircleButton extends Button
{ 
  CircleButton(int ix, int iy, int isize, color icolor, color ihighlight) 
  {
    x = ix;
    y = iy;
    size = isize;
    basecolor = icolor;
    highlightcolor = ihighlight;
    currentcolor = basecolor;
  }

  boolean over() 
  {
    if( overCircle(x, y, size) ) {
      over = true;
      return true;
    } 
    else {
      over = false;
      return false;
    }
  }

  void display() 
  {
    stroke(255);
    fill(currentcolor);
    ellipse(x, y, size, size);
  }
}