all groups > dotnet compact framework > september 2005 >
You're in the

dotnet compact framework

group:

How to set a mouse / keyboard hook in windows CE device using C# code ?


How to set a mouse / keyboard hook in windows CE device using C# code ? Milen Kardjiev
9/29/2005 7:01:28 PM
dotnet compact framework:
Hi all!
I'm trying to set a mouse/keyboard hook in a C# application , but i
haven't found an API in coredll.dll which i can use.
SetWindowsHookEx seems not working.
Do you have an idea how to that ?
Thanks !!!
Re: How to set a mouse / keyboard hook in windows CE device using C# code ? Sergey Bogdanov
9/29/2005 11:55:43 PM
Since SetWindowsHookEx@coredll accept pointer to a function and
callbacks are not supported for CF1.0 :- it will not work for you.

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


[quoted text, click to view]
Re: How to set a mouse / keyboard hook in windows CE device using C# code ? Paul G. Tobey [eMVP]
10/5/2005 10:18:48 AM
There are also significant limits on what *sort* of hooks you can set in
Windows CE. You should tell us *why* you want to hook things and what you
plan to accomplish if you get it working...

Paul T.

[quoted text, click to view]

Re: How to set a mouse / keyboard hook in windows CE device using C# code ? Paul G. Tobey [eMVP]
10/10/2005 3:19:35 PM
You can't do that. There are no mouse hooks in Windows CE. Your target
device may have some means of detecting user activity and you might use
that, rather than hooks, to turn the screen saver on and off...

Paul T.

[quoted text, click to view]
Re: How to set a mouse / keyboard hook in windows CE device using C# code ? Milen Kardjiev
10/10/2005 9:53:02 PM
Hi, i need to hook mouse and keyboard input, because i'm trying to
implement a screensaver for a windows ce device . The screensaver is a
part of the application, because of the specific of application.
Thanks !

[quoted text, click to view]
AddThis Social Bookmark Button