Solved

Keyboard Hooking in Visual basic 6

Posted on 2009-05-05
2
509 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
2 Comments
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 100 total points
Comment Utility
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
Comment Utility

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now