Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Keybd_event???

0 views
Skip to first unread message

Sudhakar

unread,
May 22, 2000, 3:00:00 AM5/22/00
to
Hi All,

We are wrting the driver for external keyboard for Pocket PC(Compaq, Aero
2001). The keyboard will be connected to the serial port.

Driver reads the data(keyboard data) from the serial port and using the
keybd_event API it's posting the event in the system message queue.

We are able to synthesizes all the keys except enterkey and Tabkey.

How can send the Enter and TAB keys into system queue ??

Is it possible to do it using the keybd_event() API or i have to follow any
other way ???


Expecting Ur reply.

Thanks in Advance.
Sudhakar.

Gary Peluso

unread,
May 22, 2000, 3:00:00 AM5/22/00
to
In winuser.h there are VK_ macros defined.

Did you try VK_TAB and VK_RETURN for the tab key and enter key,
respectively?

Gary Peluso
Microsoft Windows CE Developer Support


Sudhakar

unread,
May 23, 2000, 3:00:00 AM5/23/00
to
I tried with VK_RETURN and VK_TAB. But it's not working.

I did as follows: Keybd_Event(VK_RETURN,0,KEYEVENTF_SILENT,0L) same for
the TAB with the VK_TAB value. I send the other keys also in the same way
and it's working fine.

Do i need to do anything more for the Enter and Tab keys ???? How can i over
come ???

Please help me...

Thanks a Lot,
Sudhakar.


u...@40th.com wrote in message ...
>
>Gary Peluso? (gpno...@microsoft.com?) wrote (Mon, 22 May 2000 22:51:38
GMT):


>>Did you try VK_TAB and VK_RETURN for the tab key and enter key,
>

>PsPC and PocketPC don't seem to like those. HPC * works okay with those.
>
> '`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`''`'`'`'`'`'`'`'`'`'`''`'`'`'`'`'`'`'`'`
> Corne1 Huth 40th Floor - Software Win|CE|Linux|Warp|+ http://40th.com/

Gary Peluso

unread,
May 25, 2000, 3:00:00 AM5/25/00
to
Let me take a closer look at PsPC and PocketPC.

Thanks

Gary Peluso

unread,
May 25, 2000, 3:00:00 AM5/25/00
to
You should be doing two keybd_event calls for each "keypress" you want to
make, one for the keydown and one for the keyup:

For example:

keybd_event(VK_A,0,0,0L);
keybd_event(VK_A,0,KEYEVENTF_KEYUP,0L);

keybd_event(VK_TAB,0,0,0L);
keybd_event(VK_TAB,0,KEYEVENTF_KEYUP,0L);

Does that help?

Sudhakar

unread,
May 26, 2000, 3:00:00 AM5/26/00
to
Yes. I am using the same. But iam not getting.

I am working with Windows CE 3.0 (Compaq Aero 2100,MIPS Processor) and
iam using the
eMbadded VC++ 3.0 for programming. Is that any problem with the version iam
using ??


Regards,
Sudhakar.

Gary Peluso wrote in message ...

avp...@my-deja.com

unread,
May 31, 2000, 3:00:00 AM5/31/00
to

I am trying to use keybd_event() to simulate keyboard Alt-down on
Windows CE. It works to some extent using the keybd_event(VK_MENU)
call, but not completely: if I send a regular key after this, it will
be interpreted as Alt-key. But if I click with pen on the screen, the
click is taken still as left mouse button event, not as the right-click
which happens when I press Alt on the hardware keyboard. Also, the
GetAsyncKeyState() call returns 0, as if the Alt is not down.
On Win95/98/NT the same code works correctly.

How can I simulate the Alt-down on Windows CE to the full extent?

Thank in advance,
AVP.


In article <ujEK2fox$GA....@cppssbbsa01.microsoft.com>,


gpno...@microsoft.com (Gary Peluso) wrote:
> You should be doing two keybd_event calls for each "keypress" you
want to
> make, one for the keydown and one for the keyup:
>
> For example:
>
> keybd_event(VK_A,0,0,0L);
> keybd_event(VK_A,0,KEYEVENTF_KEYUP,0L);
>
> keybd_event(VK_TAB,0,0,0L);
> keybd_event(VK_TAB,0,KEYEVENTF_KEYUP,0L);
>
> Does that help?
>
> Gary Peluso
> Microsoft Windows CE Developer Support
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.

avp...@my-deja.com

unread,
May 31, 2000, 3:00:00 AM5/31/00
to
0 new messages