Is there an API that will return the current screen coordinates of the text cursor (that is, the text insertion point)?
I know that GetCursorPos returns the current screen position of the mouse cursor.
In my program, I move the mouse to various points on the screen, left click at each point, and enter text. When done, I would like the mouse to left click at the original text insertion point so that any text the user types at that time will go to the same place the text was going before my program ran.
I can't use GetCursorPos because that will give me the position of the mouse cursor, which may be different than the text insertion point.
Also, the active window is the user's web browser. It is not my GUI (my application has no GUI), so there is no opportunity for me to do something special in the GUI design to allow the text insertion point to be determined.
I know that GetCursorPos returns the current screen position of the mouse cursor.
In my program, I move the mouse to various points on the screen, left click at each point, and enter text. When done, I would like the mouse to left click at the original text insertion point so that any text the user types at that time will go to the same place the text was going before my program ran.
I can't use GetCursorPos because that will give me the position of the mouse cursor, which may be different than the text insertion point.
Also, the active window is the user's web browser. It is not my GUI (my application has no GUI), so there is no opportunity for me to do something special in the GUI design to allow the text insertion point to be determined.
Comment