Solved

Keyboard Hooking in Visual basic 6

Posted on 2009-05-05
2
559 Views
Last Modified: 2013-11-25
Hi Guys

Does any body know of a global keyboard hook dll, or class, that will work with visual basic 6, preferably one written in C++, that I can call in my VB6 project

If this is the vbAccellerator one, can some body please tell me how to use it, preferably with some code examples.

Many thanks in advance.

Simpath

0
Comment
Question by:simpath
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 100 total points
ID: 24305458
You can use a low level keyboard hook (WH_KEYBOARD_LL) directly withing a VB6 app without a DLL...
See: http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_21284733.html#13126179
0
 

Accepted Solution

by:
simpath earned 0 total points
ID: 24681927

Hi Guys,

I spent a lot of time writing code for keyboard hooks, and this is not without its problems,

The easiest, and best thing I have come across is to use an Active X written by Mabry Software (Dan Appleman etc),

DWSHK.OCX (Keyboard Hooks)
Desaware Inc.  SpyWorks.

Windows hooking is not something that I would suggest that you keep reoinventing the wheel with.

Simpath

0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question