Re: Keyboard filter to simulate keys

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ray Trent (rat_at_synaptics.spamblock.com)
Date: 09/21/04


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.


Relevant Pages

  • Re: Keyboard filter to simulate keys
    ... SendInput() will work just fine for you. ... Please do not send e-mail directly to this alias. ... > like some app opening a *specific* keyboard instead of the meta-keyboard ... >> Some forums mention that directx really reads ...
    (microsoft.public.development.device.drivers)
  • Re: Keyboard filter to simulate keys
    ... SendInput() will work just fine for you. ... Please do not send e-mail directly to this alias. ... > like some app opening a *specific* keyboard instead of the meta-keyboard ... >> Some forums mention that directx really reads ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Keyboard filter to simulate keys
    ... SendInput() will work just fine for you. ... Please do not send e-mail directly to this alias. ... > like some app opening a *specific* keyboard instead of the meta-keyboard ... >> Some forums mention that directx really reads ...
    (microsoft.public.windowsxp.device_driver.dev)
  • Re: Keyboard filter to simulate keys
    ... SendInput works fine with DirectInput on 2k and XP. ... like some app opening a *specific* keyboard instead of the ... > Some forums mention that directx really reads ... > I work with win2k and winxp. ...
    (microsoft.public.windowsxp.device_driver.dev)
  • Re: Keyboard filter to simulate keys
    ... SendInput works fine with DirectInput on 2k and XP. ... like some app opening a *specific* keyboard instead of the ... > Some forums mention that directx really reads ... > I work with win2k and winxp. ...
    (microsoft.public.win32.programmer.kernel)