How to get the text cursor position in Microsoft Edge from my program?


  • I can get the text cursor position in any application using GetGUIThreadInfo function. Structure GUITHREADINFO contains rect rcCaret for this.

    But this function doesn't work in Microsoft Edge. Why? It's native Microsoft application, but doesn't support WinAPI functions!

    Even Firefox support GetGUIThreadInfo function.

    How can I get the text cursor position in Microsoft Edge?

    Saturday, November 11, 2017 5:35 PM

All replies

  • Hi,

    which version of EDGE?

    try pressing F7 to turn caret browsing on/off.

    I have no problems with Narrator and Edge.


    Questions about html, css and scripting for web site developers using MSIE browsers.


    Monday, November 13, 2017 8:39 PM
  • Edge 41.16299.15.0

    Thank you for this information.

    But this doesn't change situation with "programmatically get the caret position".

    Wednesday, November 15, 2017 10:09 AM
  • Hi Comfort Software,

    According to your information, I make a test in my side in Edge, it works. You need confirm if turn on the caret browsing in Edge? If you meet some error message in Edge, please post it!

    Best Regards,

    Eric Du

    Friday, November 24, 2017 3:00 AM