Hello John,
I am glad to hear it.
Thanks very much for participating the community.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Content-Class: urn:content-classes:message
!From: "John Shaw" <
[email protected]>
!Sender: "John Shaw" <
[email protected]>
!References: <
[email protected]>
<
[email protected]>
!Subject: RE: Global Hotkey? Similar to RegisterHotKey
!Date: Mon, 8 Sep 2003 12:17:34 -0700
!Lines: 66
!Message-ID: <
[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcN2PdvWgBgnAbF2SOaDKgelxSxnIg==
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:53214
!NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!Thanks for you help. Works fine!
!>-----Original Message-----
!>Hello John,
!>
!>Thanks for posting in the group.
!>
!>In order to hook system information, we could use Win32
!system hooks.
!>However, in order to hook system keyboard/mouse
!information, the hook
!>application should reside in a DLL. So it is not possilbe
!to use Win32
!>system hooks in .NET programming.
!>
!>However, for RegisterHotkey API, I think we could use it
!in .NET. In order
!>to call it, we need to use PInvoke in .NET programming.
!>
!>Hope that helps.
!>
!>Best regards,
!>Yanhong Huang
!>Microsoft Online Partner Support
!>
!>Get Secure! -
www.microsoft.com/security
!>This posting is provided "AS IS" with no warranties, and
!confers no rights.
!>
!>--------------------
!>!Content-Class: urn:content-classes:message
!>!From: "John Shaw" <
[email protected]>
!>!Sender: "John Shaw" <
[email protected]>
!>!Subject: Global Hotkey? Similar to RegisterHotKey
!>!Date: Wed, 3 Sep 2003 10:36:31 -0700
!>!Lines: 8
!>!Message-ID: <
[email protected]>
!>!MIME-Version: 1.0
!>!Content-Type: text/plain;
!>! charset="iso-8859-1"
!>!Content-Transfer-Encoding: 7bit
!>!X-Newsreader: Microsoft CDO for Windows 2000
!>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!>!Thread-Index: AcNyQemR+hrtPlidRiyDRNzTNd/y5Q==
!>!Newsgroups: microsoft.public.dotnet.framework
!>!Path: cpmsftngxa06.phx.gbl
!>!Xref: cpmsftngxa06.phx.gbl
!microsoft.public.dotnet.framework:52878
!>!NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
!>!X-Tomcat-NG: microsoft.public.dotnet.framework
!>!
!>!Is there a way to trap the keyboard input on a system
!>!basis that would allow a hot key to be created that
!would
!>!allow a specific form to respond even if it does not
!have
!>!focus in the .Net framework? I guess this would be
!similar
!>!to the RegisterHotKey Method --a system wide hotkey.
!>!Example-- I need to control the windows media player,
!used
!>!in a form, from the keyboard even when it does not have
!>!focus.
!>!
!>
!>.
!>
!