Re: MouseFilter
- From: "MH" <lightningstream@xxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 00:50:21 +0100
The idea is to simulate mousemovement in any windows program or Directxinput
based app/game.
I want to let the cursor move with data from my own app and the mouse it
self shouldn't interfere with the movement even if you would move the mouse.
Actually its just that i want to replace the mouse as input device for a
period and let the cursor move by my program.
I wanted to try it with a filter but come to think about it im not sure
anymore.
Is this idea possible with a filter?
"Ray Trent" <rat@xxxxxxxxxxxxx> schreef in bericht
news:ue2zJ1dJGHA.1832@xxxxxxxxxxxxxxxxxxxxxxx
> Generally SendInput works about as well as sending packets from a driver
> (the only exception I can think of might be an app that is getting them
> from direct input from a particular device). What exactly are you worried
> about overriding the mouse packets? Usually if some part of the system is
> "overriding" mouse packets (whatever you mean by that), there's a good
> reason...
>
> Anyway, even a filter driver can't do that, because another mouse filter
> driver could stop whatever you're doing.
>
> MH wrote:
>> Does Sendinput override everything?
>> My mouseinput needs to override Windows and Directinput.
>>
>> The thing is i need to be sure that my mousepackets always go through and
>> dont get lost or changed by other filters or drivers.
>> That's why i came up with the filter thing, since i know i can change
>> everything i want.
>>
>> "Ray Trent" <rat@xxxxxxxxxxxxx> schreef in bericht
>> news:%233nefHdJGHA.2896@xxxxxxxxxxxxxxxxxxxxxxx
>>> If all you want to do is inject mouse packets from user mode, you are
>>> *far* better off just calling SendInput. For almost all intents and
>>> purposes, it's the same as having a filter driver, and for the few cases
>>> where it isn't exactly the same, you probably don't want to be injecting
>>> packets anyway.
>>>
>>> MH wrote:
>>>> Hi
>>>>
>>>> I need to get a filter running where i can add my own mousepackets to
>>>> the mouse from a usermode program.
>>>> One of the things i want with the driver is to start and stop it
>>>> runtime.
>>>>
>>>> So first i wanted to get the moufiltr example from DDK running as an
>>>> upperfilter with the help of an inf file but somehow i cannot get it to
>>>> work. I tryed to register it as an Class driver for all mouse and i
>>>> made a service.
>>>> Only when i start the service from my application with startservice it
>>>> gives me an error code and the service doesn't run.
>>>>
>>>> With the help of some lecture i went to see at the device manager at
>>>> the mouses but when i look at the option "class upper filters" it
>>>> doesn't give me any info on if moufiltr is hooked on the mouse. I do
>>>> see mouclass hooked on it at the upper class filter.
>>>>
>>>> My question is , can i run the filter this way or do i need to do it in
>>>> a different way?
>>>>
>>>> Thx
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> Ray
>>
>>
>
>
> --
> Ray
.
- Follow-Ups:
- Re: MouseFilter
- From: Ray Trent
- Re: MouseFilter
- References:
- MouseFilter
- From: MH
- Re: MouseFilter
- From: Ray Trent
- Re: MouseFilter
- From: MH
- Re: MouseFilter
- From: Ray Trent
- MouseFilter
- Prev by Date: USB ISO CRC-16 handling
- Next by Date: Q) Ethernet Duplex mismatch.
- Previous by thread: Re: MouseFilter
- Next by thread: Re: MouseFilter
- Index(es):
Relevant Pages
|