tell me how to get active edit control' handle.....

i want to create an application in which i want to
get text from other application like ms-word and
notepad..... for that i want that edit control's handle?

i want that edit control's handle when the user is typing
in word or such other applications.....