[jawsscripts] Re: Getting window paths.

  • From: "Snowman" <snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 7 Dec 2017 11:38:32 -0600

Yeah,  not quite sure I am on target here.  but, with most programs, the 
tree is very dynamic.  Sounds like that is true with yours.  Sometimes, the 
tree stays static, and a windows position in the tree  can be relied upon, 
but, I would say usually not.

But, if you know a handle value, you can search the tree for that handle.  I 
don't know why you would do that.  but, it will work.




+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern 
time.
60's and 70's tunes, and gently conservative talk.

----- Original Message ----- 
From: "Steve Spamer" <stevespamer68@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, December 07, 2017 11:13 AM
Subject: [jawsscripts] Getting window paths.


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â?Ts that particular window, hence being able 
to have it as a location for further scripts.

So, at the moment, Iâ?Tm 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â?Ts why Iâ?Tm searching for Windows 1 in the tree with the get 
window name function,as the position doesnâ?Tt seem to be constant. 
Thatâ?Ts 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â?Tt be able to determine that this window is called 
â?oWindows1â?, 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

__________�

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

Other related posts: