[jawsscripts] Waitning until a window is in focus

  • From: "Steve Spamer" <stevespamer68@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 13 Apr 2018 16:47:10 +0100

Hi.  In this application, you can switch to either of 2 views, the parameter 
view or the plugin view.
By default, opening the initial window will always open the parameter view, 
meaning a further action is needed to go to the plugin vew.
Now, some users would like to go directly to the plugin view, bypassing the 
parameter view, so I have added further code to accommodate this.  This is 
currently a verbosity option.

Currently, I am waiting a specified amount of time, to allow the parameter 
view to open, before doing any further actions to move the user into the 
plugin view.
What I'm finding, is there are a couple of plugins that take longer to open, 
hence exceeding the time I have waited and messing things up.
I could increase the time, but this is accomodating the lowest common 
denominator, so would slow down the majority of plugins.

So, I thought about putting logic into the focus changed event, so things 
won't happen until the parameter view has actually got focus, but this then 
has a knock on affect to code currently written for the parameter view. 
Meaning, if focus is changed when the user is working in this view, the 
script will change to the plugin view.

I could use another global to handle this, but is there any function that 
allows for a specific window to gain focus in order to do further actions 
without affecting any further focus change?

So, a function that is not focus changed event and will allow for waiting 
until a specific window is active, without executing if the user is working 
in that view?

Hope you get that and thanks for any ideas. Best 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:

  • » [jawsscripts] Waitning until a window is in focus - Steve Spamer