Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Keypress with virtual key. (keybd_event)

Reply
Thread Tools

Keypress with virtual key. (keybd_event)

 
 
chella
Guest
Posts: n/a
 
      08-11-2004
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.
 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      08-11-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
virtual keyboard whith Robot.keyPress Linus Sylv?n Java 3 06-03-2009 10:57 AM
How to invoke keyPress event in ASP.Net pages =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?= ASP .Net 1 10-17-2005 04:19 AM
Replicate keypress in code asp.net csgraham74 ASP .Net 1 06-22-2005 11:22 AM
Catalyst 4000 needed a keypress to restart - why? paul blitz Cisco 2 06-18-2004 11:29 AM
keypress event of TextBox - WebForm =?Utf-8?B?bWc=?= ASP .Net 2 02-08-2004 08:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57