开发者

Get caret position using Active Accessibility (MSAA)

开发者 https://www.devze.com 2023-03-18 03:43 出处:网络
Can anyone give an example of using the MSAA in or开发者_StackOverflow社区der to get the caret position (text insertion point and not the cursor).

Can anyone give an example of using the MSAA in or开发者_StackOverflow社区der to get the caret position (text insertion point and not the cursor).

MSDN on MSAA

Thanks for any help, Momico


Caret tracking using MSAA can be achieved by using WinEventHook mechanism, and watching for the following events: EVENT_OBJECT_CREATE, EVENT_OBJECT_DESTROY, EVENT_OBJECT_SHOW, EVENT_OBJECT_HIDE, EVENT_OBJECT_LOCATIONCHANGE.

For further explanation and example visit the following links:

Explains the use of WinEventHook

SetWinEventHook (with example)

Thx, Momico.

0

精彩评论

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