Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generating keyboard events 1

Status
Not open for further replies.

tolemac

Programmer
May 4, 2003
8
RO
Hi,
I'm trying to make an application that sends keyboard events to other applications. For example if I want to auto complete the fields of a form (like name, address, phone no., etc. ) I need to generate some keyboard events like: <name> <tab> <address> <tab> <phone no.>
The problem is that i don't know how to generate a keyboard event. Could anyone give me an example of how to generate keyboard events?

Thank you and please excuse my poor English.
 
I've used the keybd_event function in order to simulate a print-screen key press. thread102-392160

Here's more information directly from Microsoft about it:
It should just be a case of looking up the Virtual Key (VK) codes and plugging them into the keybd_event function.

You can find the VK codes at the following site:

Hope this helps!


Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
Hi,
It is exactly what I was looking for. Thank you for your help.
 
Might wanna reward Stretchwickster with a star for that one tolemac.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top