Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 28th, 2004, 09:36 AM
Registered User
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hooking the keyboard

Dear All,
I want to capture the keycode from keyboard buffer in VB.Net Compact Framework.
Actually, I want to make a TSR(Terminate And Stay Resident) utility
which continuously look at the key strocks of keyboard and as soon as
a special key combination is pressed, it will invoke a function to
perform a series of actions.
For this purpose, I need to capture the keycode at system level not at
form level. So, how can i get keycode from keyboard buffer directly?
Tell me about some API for this purpose.

Muhammad Arif
Old March 14th, 2004, 10:28 PM
Registered User
Join Date: Mar 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Overrides WidowProc Message?
sample from MSDN
        Protected Overrides Sub WndProc(ByRef m As Message)
            ' Listen for operating system messages
            Select Case (m.Msg)
                ' The WM_ACTIVATEAPP message occurs when the application
                ' becomes the active application or becomes inactive.
            Case WM_ACTIVATEAPP

                    ' The WParam value identifies what is occurring.
                    appActive = (m.WParam.ToInt32() <> 0)

                    ' Invalidate to get new text painted.

            End Select
        End Sub


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard Shortcuts Brian Fuller BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 November 4th, 2006 01:41 PM
How to apply keyboard hooking to word document? pradpb999 C# 0 July 7th, 2006 02:30 AM
Open dialog box... hooking shikhar_ntd Visual C++ 0 April 13th, 2006 12:25 AM
How do you get keyboard input? Polymer JSP Basics 1 October 28th, 2005 02:25 PM
Disable Keyboard shiju VS.NET 2002/2003 0 August 22nd, 2003 10:29 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.