Solved

Keyboard Hooking in Visual basic 6

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change vba from autofit to 13.5 width? 4 28
using Access 8 59
Help me. 3 48
MS Access 03, TransferText, decimal places 8 47
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

863 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

22 Experts available now in Live!

Get 1:1 Help Now