Re: Keyboard filter to simulate keys
From: Ray Trent (rat_at_synaptics.spamblock.com)
Date: 09/21/04
- Next message: Dennis Burns: "Re-using Irp for Usb"
- Previous message: Ray Trent: "Re: is it possible (fake file)"
- In reply to: Mel: "Re: Keyboard filter to simulate keys"
- Next in thread: Doron Holan [MS]: "Re: Keyboard filter to simulate keys"
- Reply: Doron Holan [MS]: "Re: Keyboard filter to simulate keys"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 21 Sep 2004 15:59:56 -0700
Well, don't believe everything you read here (including this :-).
SendInput works fine with DirectInput on 2k and XP.
Of course, it may be possible to create a situation where it doesn't
work, like some app opening a *specific* keyboard instead of the
meta-keyboard GUID_SysKeyboard (I haven't verified this scenario). But
even with a filter, you're going to have that problem, because you can't
send your keys to *all* keyboards with a filter, just to one particular
one (otherwise you'd end up with duplicate key presses, which you
probably don't want).
Mel wrote:
> Thanks for your help.
> SendInput sounds really easy, too easy.
> Some forums mention that directx really reads
> the keyboard events directly from the keyboard
> and things like keybd_event or SendInput wont work.
>
> There is a way to hook the Directx Api function SendDeviceData and
> inject keystrokes there. But therefgore you have to replace the directx dll
> with your own.
>
> I work with win2k and winxp.
>
> Thanks for your tips.
> -Mel
>
> "Doron Holan [MS]" <doronh@nospam.microsoft.com> wrote in message
> news:OfLi17%23nEHA.1608@TK2MSFTNGP15.phx.gbl...
> which OS do you need this to work on? if it is win2k and forward, you can
> just use SendInput() from user mode.
>
> d
>
-- ../ray\.. Please remove ".spamblock" from my email address if you need to contact me outside the newsgroup.
- Next message: Dennis Burns: "Re-using Irp for Usb"
- Previous message: Ray Trent: "Re: is it possible (fake file)"
- In reply to: Mel: "Re: Keyboard filter to simulate keys"
- Next in thread: Doron Holan [MS]: "Re: Keyboard filter to simulate keys"
- Reply: Doron Holan [MS]: "Re: Keyboard filter to simulate keys"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|