sending keystrokes to the target machine

Jim Taylor jimtaylor "at" chartlogic.com
Fri Dec 8 17:52:01 2006


I have invokes RealVNC via a shell command, and it works wondrous well.
However, I would like to send a number of keystrokes to the remote
machine before I settle down to waiting for RealVNC to exit.  I tried
the following, but the keystrokes apparently ended up in my application
rather than being sent to the viewer and passed on to the target.  Any
ideas?



newProc = Process.Start(vncstring, paramstring)

procID = newProc.ID

.

SendKeys.Send(Keys.F12 & Keys.F12 & Keys.D1 & Keys.Enter)

.

.newProc.WaitForExit()



Thanx,



JimT