473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to simulate a key press?

Can anyone tell me how to simulate a 'key press' or 2 in C/C++.

Is there any interrupt to do the trick?

Is there any software online to do it?

Regards,

- Joel

May 12 '06 #1
4 6518
Joel wrote:
Can anyone tell me how to simulate a 'key press' or 2 in C/C++.
What's C/C++?
Is there any interrupt to do the trick?

Is there any software online to do it?

If there is a way, it is platform specific, so you will have to ask in a
group dedicated to your target platform.

--
Ian Collins.
May 12 '06 #2
"Joel" writes:
Can anyone tell me how to simulate a 'key press' or 2 in C/C++.

Is there any interrupt to do the trick?

Is there any software online to do it?


Search for "keyboard buffer" on Google. *Also* search Google groups, they
are entirely separate..
May 12 '06 #3

Joel wrote:
Can anyone tell me how to simulate a 'key press' or 2 in C/C++.
Yes.
Is there any interrupt to do the trick?
Yes.
Is there any software online to do it?
Yes.
- Joel


Just not in this newsgroup...

Look for whatever group caters for your platform.

May 12 '06 #4
If you have a windows application, from another program you can send
messages to your application by using win32 functions. see msdn.
I don't know if this helps but here it is a link:
http://www.codeproject.com/cpp/sendkeys_cpp_Article.asp

I think there must be something for linux too. I used a while ago a
wrapper library for perl and it worked with linux and windows. It is
called guitest or something like that, and for linux: X11 Guitest I
think.

Let me know if you find a better solution.

May 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mike | last post by:
I have a form with a textbox and a button. If I press the button, I want to type the letter q into the textbox. What would I put into the event handler of the button in order to simulate the q...
3
by: Dan | last post by:
Consider a simple form with a textbox and button. Is there a way to handle the common situation where a user presses "return" rather than clicks on the button. I can already detect the...
3
by: Maileen | last post by:
Hi, I would like to know how to simulate an event in VB.NET ? in fact, for example when user press enter in some special textbox, i would like to raise a listview column click (for example). ...
3
by: John Dalberg | last post by:
I have an app that keeps popping up a windows with a 'Yes' or 'OK' button on it. I am trying to write a little app that automates hitting the enter key so I don't have to do it myself. I used...
2
by: jonathan184 | last post by:
Hi I am try to create a script to login EMS admin tool *JMS* Now the admin account has a blank password. so if i login normal usually i type this: i press enter username(ADMIN) prompt - i...
3
by: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= | last post by:
I have two sets of search criteria on my page. They are placed inside two DIV tags made visible/hidden by a client script. In each DIV tag I have a LinkButton that performs the search from each...
3
by: =?Utf-8?B?cHJvZ2dlcg==?= | last post by:
I have a C# application that hosts an AxWebBrowser control which I automate by sending mouse clicks and keyboard input. I have had various problems in doing this due to a bug in the AxWebBrowser...
12
by: andersond | last post by:
I have a webpage where a javascript routine swaps tables to "clear" the screen and start a new group of questions. After the screen is cleared a textbox or a drop-down menu can receive focus by...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.