By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,407 Members | 920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,407 IT Pros & Developers. It's quick & easy.

Keypress with virtual key. (keybd_event)

P: n/a
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.
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
chella wrote:
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
OS newsgroup. Try comp.os.<your_os_here>.programmer (or something of
that sort).
[...]


Victor
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.