[jawsscripts] Getting window paths.

  • From: "Steve Spamer" <stevespamer68@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 7 Dec 2017 17:13:59 -0000

Hi folks. I can navigate a tree of windows, but some windows always stay within 
the tree, even if they have been closed in the program.
Instead of getting the window name, I want to use the handle of the current 
window and check it against the handle of windows displayed in the window tree, 
but as this position is not constant when looking with the BX tools, I would 
like to try with some of the functions referenced in the tools.
I have been told, if a particular window is always at a given level, then I can 
check the handle from the currently focused window against the window at that 
known level, and know it’s that particular window, hence being able to have 
it as a location for further scripts.

So, at the moment, I’m having to get the window name first and then check it 
against what window is in focus. Has anyone got any suggestions/examples on how 
I can identify windows without using the get window name function?

An example would be:
Window 1 is in focus in the program.
Window 1 is showing in the windows tree and it is 10 children back from the top 
level window.
If I open another window and close it, that window will stay in the windows 
tree and window 1 could now be 11 children back from the top level.
So, that’s why I’m searching for Windows 1 in the tree with the get window 
name function,as the position doesn’t seem to be constant.  That’s why I 
would think the BX tools will give constant positions for these windows.
I could varrify the focused window is the same as Windows 1 in the tree with 
the handle, but I wouldn’t be able to determine that this window is called 
“Windows1”, so I can use it for further script.

I hope you understand what is a pain to explain <grin. THx steve.
Follow me on Twitter: @stevesax123
Visit the samplitude Access website. Jaws scripts for pro recording with 
Samplitude in Windows: www.samplitudeaccess.org.uk
__________�

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

Other related posts: