Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Read/Write Keyboard Buffer

Posted on 2006-11-01
1
Medium Priority
?
783 Views
Last Modified: 2009-12-16
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
Comment
Question by:gvector1
1 Comment
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 total points
ID: 17854246
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Loops Section Overview
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question