Solved

Keyboard Hooking in Visual basic 6

Posted on 2009-05-05
2
566 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses
Course of the Month6 days, 10 hours left to enroll

634 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