I just got the demo for the mouse hook I downloaded from about.com to work. This might be a good thing to use to implement the autohide functionality of the new ANT application. Nice to play with Delphi and Windows messaging again… 😉
And I found another link with explanation on how to hook the keyboard. Hooks: Capture keys in all Windows applications.