Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use Hotkey in VB6.0

Status
Not open for further replies.

RyuII

Programmer
Jan 26, 2003
1
HK
Hello, any one has experience use Hotkey in VB6.0 ? I would like to make a program and assign a hotkey for it. We can create shortcut key in menu but it's only work when the program is active, can I assign a hotkey for it even the program is not active. I do need your help, hope someone can help me, thank you very much.
 
Keystrokes are only send to active windows, so I think that if you want to intercept these keystrokes, you'll have to hook the keyboard. See SetWindowsHookEx in the MSDN for this.
Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top