Global hotkey

Is it possible to assign a global hotkey to a delphi program? I have
tried using the HKM_SETHOTKEY message, but been unable to get it to
work also tried WM_SETHOTKEY and RegisterHotkey, but so far been unable
to get it to work. I want the program to activate when I press a special key
combination, no matter which program I have active.

Has anyone else gotten this to work? if so how?

All help appreciated!

Tollef Fog Heen
(remove no-spam to send email)