Solved

Keyboard Hooking in Visual basic 6

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Vlookup to move data back to source. 4 92
passing parameter in sql procedure 9 63
Visual Studio 2005 text editor 10 39
Excel Automation VBA 19 71
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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

809 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