I want to read Mouse selected text from foreground window without using clipboard

后端 未结 1 761
一整个雨季
一整个雨季 2020-12-12 07:44

Is there any windows application process interface to read selected/highlighted text from foreground window .

相关标签:
1条回答
  • 2020-12-12 08:40

    The accessibility interfaces are provided for this purpose. There have been various such interfaces in the history of Windows. Today, the recommended API is UI Automation. An overview can be found on MSDN: Windows Automation API Overview.

    Be prepared for the fact that not all controls in every application will submit to automation. In general it is probably impossible to expect to read text from every application in existence. However, well behaved applications will support automation.

    0 讨论(0)
提交回复
热议问题