Thread: simulate keys
View Single Post
  #1 (permalink)  
Old 05-20-2008, 03:17 PM
retn
 
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: http://forums.techarena.in/member.php?userid=49900
View this thread: http://forums.techarena.in/showthread.php?t=971865

http://forums.techarena.in

Reply With Quote
Sponsored Links