473,383 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

get coordinates of current highlighted or active object

Hi

I am trying to find a way to make the mouse cursor move to the keyboard
cursor position in an application. For example, I use an application called
Enterprise Guide, and I control this application using Dragon naturally
speaking as I have a disability that makes using the keyboard quite
difficult.

I often have to say the name of an object to make to be the active or
highlighted object. However to do something such as drag and drop in Dragon
NaturallySpeaking , I need to have the mouse at the same position that I
want to drag from.

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.

Thank you for your help

Doug
Dec 15 '07 #1
3 4186
On Fri, 14 Dec 2007 17:56:26 -0800, Doug <go**********@optusnet.com.au>
wrote:
[...]
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
Dec 15 '07 #2
Hi Peter,

Dragon does have the feature but I am trying to help both myself and other
people with a disability to work more effectively.

The way that Dragon performs this task is to use a command such as
"MouseGrid 4 2 2 1 Button Click". Dragon divides the screen using MouseGrid
into a 3X3 matrix and drills down using the matrix in a matrix concept until
the mouse is pinpointed. This is clunky but it maybe the only way to do
this.

Thanks very much for your response.

Doug
"Peter Duniho" <Np*********@nnowslpianmk.comwrote in message
news:op***************@petes-computer.local...
On Fri, 14 Dec 2007 17:56:26 -0800, Doug <go**********@optusnet.com.au>
wrote:
>[...]
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

Dec 15 '07 #3
I see that the Microsoft speech recognition system also has a mousegrid that
enables you to specify coordinates in the way you say Dragon does. This is a
feature of Vista. Here is the URL of an article that details using it to do
something like what you need.
http://www.microsoft.com/betaexperie...okNoHands.aspx
Do you have a Vista system?

I don't have much experience with accessibility systems or the speech
recognition tool that comes with Vista but you may also be able to pose this
question in one of the Vista groups where you may get some more concrete
information.

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Doug" <go**********@optusnet.com.auwrote in message
news:47***********************@news.optusnet.com.a u...
Hi Peter,

Dragon does have the feature but I am trying to help both myself and other
people with a disability to work more effectively.

The way that Dragon performs this task is to use a command such as
"MouseGrid 4 2 2 1 Button Click". Dragon divides the screen using
MouseGrid into a 3X3 matrix and drills down using the matrix in a matrix
concept until the mouse is pinpointed. This is clunky but it maybe the
only way to do this.

Thanks very much for your response.

Doug
"Peter Duniho" <Np*********@nnowslpianmk.comwrote in message
news:op***************@petes-computer.local...
>On Fri, 14 Dec 2007 17:56:26 -0800, Doug <go**********@optusnet.com.au>
wrote:
>>[...]
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

Dec 15 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Csaba Gabor | last post by:
When I click on the image form element <INPUT type=image name=point src="map.png"> point.x and point.y values get submitted to the server specifying where on the image I have clicked. Is there...
18
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
4
by: ASGMikeG | last post by:
Hi, How do I find the user object for the current user in Active Directory i.e. the user running my program ? Regards Michael
4
by: Henry Wu | last post by:
Hi, I see examples of Magnifying an area under mouse coordinates to a form or picturebox using VB6 and VC6, does anyone know how to do it under VB.NET? Its nice to use the new GDI+ for it. ...
0
by: song | last post by:
Situation: We highlight words of a document (.tiff): eg.name of sender of a letter. The Kodak component we have now gets the coordinates of the highlighted words with respect to the screen and not...
3
by: aam | last post by:
Hi. I am trying to find the cursor coordinates inside of a window, not a form. I would like to display the coordinates of the cursor when you click inside of the window. Either that, or have the...
3
by: hclarius | last post by:
Is there any way programmatically to get the values of the PrintDocument's current position (x and y)? Thanks
1
by: r_o | last post by:
is there a way in javascript to retrieve the current coordinates of an element on screen with respect to the page viewport as well as the screen.? i'm having this case where i have an INPUT element...
0
by: raylopez99 | last post by:
keywords: logical coordinates, page coordinates, world coordinates, device coordinates, physical coordinates, screen coordinates, client coordinates. offset rectangle. WYSIWYG rubber rectangle...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.