Capture KeyStrokes Within or Outside Your Application
Category:
MiscellaneousType:
SnippetsDifficulty:
IntermediateAuthor:
Phlip BradburyVersion Compatibility: Visual Basic 6, Visual Basic 5
More information:
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.
Declarations: