Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 825
  • Last Modified:

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?????????
0
gvector1
Asked:
gvector1
1 Solution
 
Mike TomlinsonMiddle 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now