On Fri, 14 Dec 2007 17:56:26 -0800, Doug <gordononline@optusnet.com.au>
wrote:
Quote:
[...]
I know there are functions such as GetCursorPos - but this appears only
to
work in terms of the mouse position. What I would like to do is to find
the
coordinates of the current active highlighted object. An example of this
could be, in windows explorer, if your mouse position is on the
right-hand
side of your screen, but you have a folder highlighted in the left pane.
How
could you move the mouse cursor to the location where the highlighted
object
is?
>
I would appreciate any suggestions, or any links to any sites that may
assist me. I am able to write code but I can't find a way to make this
work.
It will depend entirely on what is displaying the object in question.
For many things, there will be a window instance associated with the item
(controls are windows too), and you can get the coordinates for the
window. But for many other things, there is no specific window
association with the item, because the item you're looking at is contained
inside a control that does all of its own drawing and user-interface work
without the benefit of sub-controls.
So, you could address this in specific situations, but not in a general
way. IMHO, it would probably be better to work on a way to make it easier
to move the mouse cursor around manually. I'm kind of surprised,
actually, that a speech-input program like Dragon's doesn't already
include a feature like that.
Pete