PDA

View Full Version : move mouse to default button in dialog


Doug
December 27th 07, 10:35 AM
Hi

I have a disability that means that I need to use some voice activated
software on my computer. I also like to help others with disabilities and I
often write scripts in Dragon Naturally Speaking to enable poeple to work
more effectively.

I am trying to write some scripts that will enable the mouse to move, on
command, to the position that the keyboard cursor has as active - for
example in windows explorer - if you have a folder highlighted on the left
pane but the mouse is on the right side - how do you get the mouse cursor to
the active keyboard cursor without moving the mouse?

I think that xp can help in terms of its ability to move the mouse to the
default button in a dialog box - obviously there is some mapping that occurs
there - and I have writting some C#.net code that will 'attract' the mouse
to its default position. It is not easy to position the application dialog
in the position of the active cursor though.

Does anyone know how microsoft makes the mouse move to the default button in
a dialog box? If I can work this out - i think i may be able to help a
great many people.

Thanks

Doug

non flamable
December 27th 07, 02:38 PM
http://www.vista-software.com/index.php
see above link, its not what you asked but it may help


VistaTask is a full featured automation tool that supports more than 160
different actions, including Internet actions, database queries, file
operations, window controls, mouse actions, keyboard input and many more.
You can design new automation tasks by simple drag and drop of the desired
actions, and configuring the details of each step. The program includes a
wide range of dynamic variables that can be used within a task (dates,
system commands etc.), and supports dialog prompts that can ask the user for
input before continuing a running task. You can also create advanced tasks
by inserting conditional IF statements that can act on query results,
existing files, math calculations, visible images and various other factors.
Other features include direct Win32 API Access, checkpoints, loops, and
jumps, recording and playback and more. VistaTask can even compile your
entire task into a standalone program (EXE file) that can be used to launch
the task, even on other computers. Even though the program supports very
complex tasks, it is easy-to-use and does not require you to learn any new
scripting languages.



"Doug" > wrote in message
u...
> Hi
>
> I have a disability that means that I need to use some voice activated
> software on my computer. I also like to help others with disabilities and
> I often write scripts in Dragon Naturally Speaking to enable poeple to
> work more effectively.
>
> I am trying to write some scripts that will enable the mouse to move, on
> command, to the position that the keyboard cursor has as active - for
> example in windows explorer - if you have a folder highlighted on the left
> pane but the mouse is on the right side - how do you get the mouse cursor
> to the active keyboard cursor without moving the mouse?
>
> I think that xp can help in terms of its ability to move the mouse to the
> default button in a dialog box - obviously there is some mapping that
> occurs there - and I have writting some C#.net code that will 'attract'
> the mouse to its default position. It is not easy to position the
> application dialog in the position of the active cursor though.
>
> Does anyone know how microsoft makes the mouse move to the default button
> in a dialog box? If I can work this out - i think i may be able to help a
> great many people.
>
> Thanks
>
> Doug
>

Google