TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows XP

Notices

simulate keys

Windows XP


Reply
 
Thread Tools Display Modes
Old 20-05-2008, 11:44 PM   #1
retn
Guest
 
Posts: n/a
simulate keys


hey guys.

im new in developing device drivers.

my problem is that i want to write a driver which simulates
keyhits, like a virtual keyboard.

it must be a driver, it cant be the simple winapi, like sendkeys
oder sendmessage. there was a thread b4 with a similar name, but i
think this will be a bit different. i hope so.

ive read and tried alot but nowhere in the inet is an exactly example
how to setup a keyhit, not even in the ddk src\input\kbdfilter or
i8042prt dir.

ive tried this.

i made a pdo "FILE_DEVICE_UNKNOWN" which handles custom ioctls.
then i added a fdo "FILE_DEVICE_KEYBOARD" to the pdo like
in the input\kbfilter example in the ddk. i dont know if the fdo
worked, but it
didnt result in a bsod or disabled keyboard. i thought about reading
keys
to proof but i was a bit lazy :S.
well, after the driver recved the custom ioctl of my user app, i tried
to
setup a keyhit with the key_input_data structure. result was a bsod.
which kind? i dunno but there were a few different.

ive read alot about kbfilter and i8042prt and it really confused me.
issit that difficult to simulate a simple key?
i would appreciate it, if the answer is no.

greetz & thanks
retn


--
retn
------------------------------------------------------------------------
retn's Profile:
View this thread:



  Reply With Quote
Old 21-05-2008, 01:45 AM   #2
Doron Holan [MSFT]
Guest
 
Posts: n/a
Re: simulate keys

you should look into a HID miniport. this will allow you to report
keystrokes and use existing in box HID keyboard stack. look at
\WinDDK\6001.18000\src\kmdf\hidusbfx2 for a KMDF HID miniport example. this
driver uses the fx2 test board to simulate HID input, but you can easily not
use USB and just inject your own input.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"retn" <retn.39pvrd@DoNotSpam.com> wrote in message
news:retn.39pvrd@DoNotSpam.com...
>
> hey guys.
>
> im new in developing device drivers.
>
> my problem is that i want to write a driver which simulates
> keyhits, like a virtual keyboard.
>
> it must be a driver, it cant be the simple winapi, like sendkeys
> oder sendmessage. there was a thread b4 with a similar name, but i
> think this will be a bit different. i hope so.
>
> ive read and tried alot but nowhere in the inet is an exactly example
> how to setup a keyhit, not even in the ddk src\input\kbdfilter or
> i8042prt dir.
>
> ive tried this.
>
> i made a pdo "FILE_DEVICE_UNKNOWN" which handles custom ioctls.
> then i added a fdo "FILE_DEVICE_KEYBOARD" to the pdo like
> in the input\kbfilter example in the ddk. i dont know if the fdo
> worked, but it
> didnt result in a bsod or disabled keyboard. i thought about reading
> keys
> to proof but i was a bit lazy :S.
> well, after the driver recved the custom ioctl of my user app, i tried
> to
> setup a keyhit with the key_input_data structure. result was a bsod.
> which kind? i dunno but there were a few different.
>
> ive read alot about kbfilter and i8042prt and it really confused me.
> issit that difficult to simulate a simple key?
> i would appreciate it, if the answer is no.
>
> greetz & thanks
> retn
>
>
> --
> retn
> ------------------------------------------------------------------------
> retn's Profile:
> View this thread:
>
>
>


  Reply With Quote
Old 26-05-2008, 05:42 PM   #3
retn
Guest
 
Posts: n/a
Re: simulate keys


alright, thanks, ill give it some tries


--
retn
------------------------------------------------------------------------
retn's Profile:
View this thread:



  Reply With Quote
Old 02-07-2008, 10:51 AM   #4
retn
Guest
 
Posts: n/a
Re: simulate keys


alright, thanks, ill give it some tries


--
retn
------------------------------------------------------------------------
retn's Profile:
View this thread:



  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 05:03 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional