Read/Write Keyboard Buffer

I need to find someway to access a windows keyboard buffer.  My situation is a little different.  We are so of in the process of migrating from one already existing system to another(a new one we have designed).  But for now we have to maintain both systems.  What I would like to do is be able to programmatically load the keyboard buffer for another window.  For example:

I have a window open for the old software waiting for input.
I am also running our new application.
When I click a certain button, I would like to be able to load the keyboard buffer of the old software's window with a predetermined keystroke sequence.  

How can this be done?????????
gvector1Asked:
Who is Participating?
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
Give the old software window focus and then use SendKeys.Send():
http://msdn2.microsoft.com/en-us/library/system.windows.forms.sendkeys.send.aspx
0
All Courses

From novice to tech pro — start learning today.