Keypress with virtual key. (keybd_event)

C

chella

ok. I have finally got to the point where Im about to give up on
that... I thought maybe you guys can help

I have an ascii code (suppose 65 for the letter 'A') and have to use
the function keybd_event to produce it.

problem is I cant figure out all those parameters there and how do I
get them.
I've spent few hours with MSDN trying to understand how to make it
work with virtual key and , but maybe Im just too dumb. I dont know.
here is the MSDN definition:
VOID keybd_event(BYTE bVk, BYTE bScan, DWORD dwFlags, PTR
dwExtraInfo);

how do I make it work right? right now best I could get is 'a' instead
of 'A', '1' instead of 'a' etc.
 
V

Victor Bazarov

chella said:
ok. I have finally got to the point where Im about to give up on
that... I thought maybe you guys can help

I have an ascii code (suppose 65 for the letter 'A') and have to use
the function keybd_event to produce it.\

Sorry, there is no "function keybd_event" in C++. Perhaps you're using
some kind of OS-specific library, then you need to ask about it in that

Victor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top