I am trying to build a Robotic Arm to be controlled by a Computer Based Application, just to generate some interest of school children in Robotic.

The Hardware is pretty simple and involves a PIC (16F628A) and geared DC Motor at the Arm (yes DC motors and not Servo or Stepper).

The idea is that the Computer sends a stream of commands to the control and the controller engages the motor in the direction of the Command.

I am facing a problem with the VB code. I cannot figure out how to program a command button (in VB6) to keep sending a stream of string when the comannd button is kept pressed. At present I can only program in a way that it sends a string only once. I have 4 command buttons for 4 direction and I am interested in Momentary action for these Command Buttons.

Can any one help me with the code.

Thank you.