gmamaladze / globalmousekeyhook

This library allows you to tap keyboard and mouse, detect and record their activity even when an application is inactive and runs in background.
MIT License
1.05k stars 256 forks source link

Caret position #34

Open matteocontrini opened 9 years ago

matteocontrini commented 9 years ago

Hi, I have a feature request: getting the current caret/text cursor position. Is this possible?

Thanks

gmamaladze commented 9 years ago

My intuition tells me that caret position is the editor internal knowledge. I am pretty sure it will be impossible to get caret position form system in general case.have you made some research on that? Probably there is some Winodws API for that? Please let me know if yes.

matteocontrini commented 9 years ago

I have found this project, but it's a bit old and not much precise. It kinda works in notepad, but not in browsers for example. I'm not sure if the system exposes that information globally and reliably..

vishmonne commented 6 years ago

Any updates on how to get the caret position in external application like browsers?