simulate keys

Posted: 05-20-2008, 04:17 PM

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 o
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 fd
worked, but it
didnt result in a bsod or disabled keyboard. i thought about readin
keys
to proof but i was a bit lazy :S.
well, after the driver recved the custom ioctl of my user app, i trie
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
ret

--
ret
-----------------------------------------------------------------------
retn's Profile: http://forums.techarena.in/member.php?userid=4990
View this thread: http://forums.techarena.in/showthread.php?t=97186

http://forums.techarena.i

Reply With Quote

Responses to "simulate keys"

Doron Holan [MSFT]
Guest
Posts: n/a
 
Re: simulate keys
Posted: 05-20-2008, 07:15 PM
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: 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
retn
Guest
Posts: n/a
 
Re: simulate keys
Posted: 05-26-2008, 10:41 AM

alright, thanks, ill give it some tries :

--
ret
-----------------------------------------------------------------------
retn's Profile: http://forums.techarena.in/member.php?userid=4990
View this thread: http://forums.techarena.in/showthread.php?t=97186

http://forums.techarena.i

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard filter to simulate keys Mel Windows XP Device Drivers 7 12-07-2007 12:10 PM
fn keys michael Windows Vista Performance & Maintenance 3 11-18-2007 05:12 PM
How to simulate a human-being logon on a PC? cfman Windows XP Device Drivers 10 07-18-2006 09:37 PM
Function Keys ("F" keys) in Remote Desktop Doomer Windows XP Work Remotely 0 09-13-2004 02:23 PM
keys lee Windows XP Performance & Maintenance 1 08-05-2003 10:56 PM