[jawsscripts] Re: Using MoveToControl Function

  • From: Soronel Haetir <soronel.haetir@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 30 Aug 2017 06:51:19 -0800

The handle argument to MoveToControl is the handle of the dialog, not
the target control.

On 8/30/17, John P. Thomas <johnt@xxxxxxxxxxxx> wrote:

Hi,

I have a dialog box in Total Recorder Pro, and I would like to use the
MoveToControl function in a script to jump to specific dialog buttons.

The control IDs for the buttons are unique and do not change. The handles
for the controls change each time the program is started.

The MoveToControl function requires both a handle and a control ID.

How do I get a handle for a dialog control with a known control ID without
having to get the button in focus and then obtaining the handle?

I could avoid the handle requirement by using a do loop to rotate through
all the control IDs until I find the ID that I want.  I am hoping to avoid
this, though this would probably work.

There is probably a simple solution, but I can't seem to find it.

Thanks,
John


__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts




-- 
Soronel Haetir
soronel.haetir@xxxxxxxxx
__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: