posted by yhkim47

I could get edit controls' text of another process's window with sendmessage(WM_GETTEXT).
using sendmessage across process can cause blocking, for that u can either use PostMessage() or sendmessageTimeOut(), they dont cause blocking, and of these two SendMessageTimeOut() is a better option as long as the messages are not related to keyboard or mouse because they are normally posted.

theres another way besides those "three ways" check this article as well