Donut
❔ Get caret position in any window
Hello
I am trying to follow the answer on the forum https://learn.microsoft.com/en-us/answers/questions/818647/how-to-get-caret-position-in-any-application-from
and this is what I came up with https://pastebin.com/L6V2851M with a little help with ChatGPT ( I am not really familiar with winapi)
this code runs in a WinForms application when I hit a specific key.
When the function is executed it prints out "Could not get AccessibleObject from window". I don't know how to investigate what's going wrong...
2 replies