[jawsscripts] Re: Using MoveToControl Function

  • From: "John P. Thomas" <johnt@xxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 30 Aug 2017 14:41:16 -0400

Hi Steve,

This worked:
SetFocus (FindDescendantWindow (GetRealWindow(GetFocus()), 123))

Thank you,
John

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Steve Spamer
Sent: Wednesday, August 30, 2017 10:47 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Using MoveToControl Function

Hi John, try one of the following (BTW, 123 is the ID of the control you
want):

Script TotalRecorderButton1()
MoveToControl (GetRealWindow(GetFocus()), 123) EndScript

Script TotalRecorderButton1()
SetFocus (FindDescendantWindow (GetRealWindow(GetFocus()), 123)) EndScript

Steve.
-----Original Message-----
From: John P. Thomas
Sent: Wednesday, August 30, 2017 3:32 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Using MoveToControl Function

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 ;

__________�

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

__________�

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

Other related posts: