Capture KeyStrokes Within or Outside Your Application
Version Compatibility: Visual Basic 6, Visual Basic 5
The GetAsyncKeyState API will work whether your app is active or not. You can use it to develop simple hotkeys. Simply paste the declarations into your code and use it like in the sample.
Instructions: Copy the declarations and code below and paste directly into your VB project.