473,396 Members | 1,998 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,396 software developers and data experts.

location of keyboard cursor

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.

Thank you for your help

Doug
Dec 14 '07 #1
2 2383
If you are looking to get the coordinates of a highlighted object, then I
would suggest declaring two JavaScript variables and assign them the
appropriate values when the onfocus event occurs. To do this without
manually adding the onfocus event handler to all elements, use event
bubbling (sometimes event bubbling can be tricky in JavaScript, but in this
case, it is probably worth it). The only problem that this may present is if
there is an object that cannot have focus (for example, text on webpages
sometimes cannot recieve focus). This is the best suggestion I can give,
hopefully it will help you get closer to what you want.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Doug" <go**********@optusnet.com.auwrote in message
news:47**********************@news.optusnet.com.au ...
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.

Thank you for your help

Doug

Dec 18 '07 #2
Hi Nathan

Thanks for your suggestion - can you elaborate a little on this?

What is event bubbling?

I write C# and VB but am not too familiar with javascript.

Thanks

Doug
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
If you are looking to get the coordinates of a highlighted object, then I
would suggest declaring two JavaScript variables and assign them the
appropriate values when the onfocus event occurs. To do this without
manually adding the onfocus event handler to all elements, use event
bubbling (sometimes event bubbling can be tricky in JavaScript, but in
this case, it is probably worth it). The only problem that this may
present is if there is an object that cannot have focus (for example, text
on webpages sometimes cannot recieve focus). This is the best suggestion I
can give, hopefully it will help you get closer to what you want.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Doug" <go**********@optusnet.com.auwrote in message
news:47**********************@news.optusnet.com.au ...
>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.

Thank you for your help

Doug


Dec 27 '07 #3

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

Similar topics

1
by: Scott Shaw | last post by:
Hi all, I was wondering if you could help out with this problem that I am having. What I am trying to do is detect keyboard input in a while loop without halting/pausing the loop until the key is...
0
by: Dennis | last post by:
Hey, ive some Problems. 1. i want to get the position of the Text (Keyboard) Cursor in any Application. example: Word 2. I want to paste text. (simulating the Keyboard) . example: If i...
4
by: Strahimir Antoljak | last post by:
I want to track the cursor location relative to a control on the form. I am aware of System.Windows.Forms.Cursor.Position which provides absolute cursor position relative to the screen. With right...
0
by: Neji | last post by:
Is it possible to switch between dual monitors with the keyboard? For example, if I am on the left-hand monitor, can I press a keyboard combination to teleport the mouse cursor to the middle of...
1
by: =?Utf-8?B?aG9tYW50Y3c=?= | last post by:
-windows xp -dell dimension 9150 The computer starts normally, loads up the blue login screen. I can move the cursor around the screen and type on keyboard. Then after roughly 3 seconds...
331
by: Xah Lee | last post by:
http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs ---------------------------------------- THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and...
0
by: =?Utf-8?B?SmltSGVhdmV5?= | last post by:
I created my first AJAX web page, I put a few controls on a form and then invoked the debugger. When it comes up, there is not blinking cursor. If I use my mouse to activate a control, such as a...
6
by: tbeers | last post by:
Did I accidently set a soft switch in the setup of my program. I have been using access for a long time. yesterday...while writing code, the cursor started jumping around weirdly. example.. ...
7
by: Burden | last post by:
Please help i am hitting my head against a wall here. I am creating a database to use with a touchscreen and i have created a pop up keyboard. I have got stuck on two things. Firstly when i am...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.