How to get cursor position?
How to get cursor position?
I am getting familiar with control functions, especially with sendmessage functions. How can I get the caret position (not screen x and y, just how many characters before it)
Re: How to get cursor position?
what app is the cursor in?
Answer will change depending
Answer will change depending
Re: How to get cursor position?
just a generic pop up text box, similar to notepad. It's an Edit1 if that helps
what options are there?
what options are there?
Re: How to get cursor position?
This approach by neogna2 could work for just about anything since it uses Microsoft Active Accessibility info, which all apps are supposed to support.
-
- Posts: 4411
- Joined: 29 Mar 2015, 09:41
- Contact:
Re: How to get cursor position?
I'd use the EM_GETSEL message.
Re: How to get cursor position?
Do you know how to find the 0x???? code? Or what it would be? I can't get the send message to work without it for some reason
-
- Posts: 4411
- Joined: 29 Mar 2015, 09:41
- Contact: