3

After turning on Start/Settings/Ease of Access/Text Cursor Indicator on Windows 10, Microsoft apps and edit controls paint a colored blob at each end of the text cursor. I see that a program called EoAExperiences.exe is started when that setting is turned on, but its purpose is undocumented. It does have an entry in the registry under this key:

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Accessibility\ATs\CursorIndicator

If EoAExperiences is doing the painting, does my C++ Winapi program somehow have to register with it, before it will highlight its text cursor? If not, is there an API that I can call to do this?

Thanks!

Keith M
  • 101
  • 8

1 Answers1

0

I suggest you could refer to the Doc:Ease of Access Assistive Technology Registration

Whether you just want to change the the text cursor style? If so, I suggest you could try to use SetSystemCursor function or SetCursor function

Jeaninez - MSFT
  • 3,210
  • 1
  • 5
  • 20
  • Thanks for your suggestions, but my program is a user rather than provider of assistive technologies. SetSystemCursor and SetCursor are for the mouse cursor whereas my query is about the text cursor (caret). – Keith M Nov 16 '22 at 09:02
  • Try to use [CreateCaret function](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-createcaret) to create a new shape for the system caret. For more details, you could refer to the Doc:[Using Carets](https://learn.microsoft.com/en-us/windows/win32/menurc/using-carets) – Jeaninez - MSFT Nov 16 '22 at 09:09
  • Thanks, but CreateCaret cannot distinguish between the the caret and any blobs included in its bitmap, so the whole thing flashes. Those blobs, when painted by Microsoft's assistive technology, are static. – Keith M Nov 16 '22 at 09:55
  • You could try to use [UI Automation](https://learn.microsoft.com/en-us/windows/win32/winauto/uiauto-uiautomationoverview) and you could load UIAutomationCore.dll into it. – Jeaninez - MSFT Nov 17 '22 at 08:41