I made a "global" keyboard hook using Delphi. It works fine.
But how can I clear the key that got hooked ?
My function below will be called continuously when I press the ESC key (hooked key).
function KeyboardHookProc (Code: Integer; WordParam: Word; LongParam: LongInt) : LongInt;
// ESC Key preseed ?
if (WordParam = $1B) then
if (MainForm.Tray.ApplicationVisible) then
// I need to clear the keyboard buffer here ! So this function will be called only ONCE. How ?
I need a way to DISPOSE / REMOVE they "key" after it has been hooked.
Any idea ?