In order ro handle other programs messages you will need to subclass the programs windows, i.e. you will need a standard dll (made in C++,ASM,Delphi).