[jawsscripts] Re: handle after reboot

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 30 Dec 2020 17:36:35 -0500

I wouldn't give up, but I would not be able to use the items you mentioned; I'd 
have to use some combination of MSAA, UIA, and FSXML to script that one I'd say.

On Wed, Dec 30, 2020 at 04:32:22PM -0600, Bryan Schulz wrote:
Hi,

So do you just give up or can you use real name, window name & class to find
an item on the screen?
The app is a auto dialer in chrome and from time to time, the x/y position
of the phone icon to dial a number moves.
Bryan Schulz


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On
Behalf Of Doug Lee
Sent: Wednesday, December 30, 2020 4:21 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: handle after reboot

Window handles will absolutely change, not only after a reboot, but even
when the app is restarted and sometimes when a dialog goes away and comes
back. Window handles are like those numbers you get in a fast-food line that
let you claim your order.

Control ids originally did not change except sometimes in an application
update. However, this is no longer a safe assumption. In particular, .NET
applications often make the control ID of a window the same as its handle,
which makes it useless as a means of identifying something across multiple
runs of the app.

In newer apps, such as those based on QT, WPF, or Chrome, there may only be
one window, with its single handle and single control id, for the entire
app. This does not sound like your scenario, but it is fairly common
nowadays. Different means must be used to identify what's what.

On Wed, Dec 30, 2020 at 04:15:39PM -0600, Bryan Schulz wrote:
Hi,


Can the experts tell me if this is true?

I was told that a handle and control id are useless when they change after
rebooting your computer so the scripter gave up.

Bryan Schulz


-- 
Doug Lee, Lead Accessibility Architect
Level Access - over 1,000 organizations trust us to help them achieve and 
maintain digital accessibility compliance!
mailto:Doug.Lee@xxxxxxxxxxxxxxx  http://www.LevelAccess.com
"While they were saying among themselves it cannot be done, it was done." 
--Helen Keller
__________�

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

Other related posts: