p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   General .NET (http://p2p.wrox.com/forumdisplay.php?f=122)
-   -   Windows Service (http://p2p.wrox.com/showthread.php?t=24141)

hunghung January 19th, 2005 02:03 PM

Windows Service
 
Please Help ! I use C# to write a Windows Service, i want my service can capture key event (such as : keydown,keyup ) . How to do it ?


Imar January 19th, 2005 02:28 PM

I don't think this is possible.

A Windows Service runs as a background process, so it never gets the focus, and never receives key pressed events.

I could be wrong, but this is how I think it works.

You're not making a key logger, are you??

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.

mehdi62b January 20th, 2005 01:10 PM

for Keyboard Hooking check out this and also this,
(for a key logger I think there is no logical need for a WindowsService).

_____________________________
Mehdi.
software engineering student.
Looking for a good job for summer 2005.

bmains January 20th, 2005 01:43 PM

I thought you couldn't because I read that a service couldn't raise notifications and such, that it was best to use a service with a windows form.

Brian


All times are GMT -4. The time now is 05:22 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.