Re: Using RegisterHotKey API
I haven't used that API, but from the description you need to use subclassing in order to trap the WM_HOTKEY message in your VB application.
The first parameter is the window handle of the VB window that is supposed to receive the WM_HOTKEY message.
The other parameters are self-explanatory.
Registerhotkey is contained in user32.dll.
Re: Using RegisterHotKey API
There's some excellent articles on creating 'Hot-Keys' and system-wide hooks using the downloadable code from vbAccelerator (http://vbaccelerator.com)
Look at :
vbAccelerator Hook Library - http://www.vbaccelerator.com/codelib/hook/vbalhook.htm
vbAccelerator Accelerator Control - http://www.vbaccelerator.com/codelib/hook/vbalacel.htm
Creating and Responding to HotKeys - http://www.vbaccelerator.com/codelib...mr/hotkeyr.htm
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb