Since I can't find a way to read and write the external editfield directly, I decided to use the clipboard as an interface between the external and mine program.
I copy selected text to the clipboard into my program by simulating the CTRL-C keypress. Maybe there another (better) way for doing this??? I don't know yet how to paste it back, since my program has focus. Any ideas???
But I also want to assign some kind of hotkey to pop-up my application. Is there a way to do this without looping my application for scanning all keypresses. Otherwise it raises the cpu usage up to 100%???