开发者

Is it possible to listen for em_replacesel message to control in another application in C#

开发者 https://www.devze.com 2022-12-22 16:35 出处:网络
This might be a long shot, even not possi开发者_开发问答ble. I was wondering if it is possible to listen forthe em_replacesel message to a rich text control in another programs window and then call o

This might be a long shot, even not possi开发者_开发问答ble.

I was wondering if it is possible to listen for the em_replacesel message to a rich text control in another programs window and then call one of the Win32API's to get the text from the window, or even just get the text that was sent via em_replacesel.

Is this possible, and possible in C#?


SetWindowsHookEx will let you inject a DLL into the target process, and hook messages in that process.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号