[jawsscripts] Re: detecting the handle variable if it found the window or not?

  • From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 17 Aug 2009 14:11:31 -0400

Hi Donald:
You might try using the GetForeGroundWindow function to return the
handle of the main window or dialogue with focus.  This function does
not require a starting handle so May work in some instances where the
handle with focus does not link directly to the main window. 

David Farough
Application Accessibility Coordinator/coordonateur de l'accessibilité 
Information Technology Services Directorate /
Direction des services d'information technologiques
Public Service Commission / Commission de la fonction publique
Email / Courriel:  David.Farough@xxxxxxxxxxxxx
Tel. / Tél:    (613) 992-2779 

>>> "Donald Marang" <donald.marang@xxxxxxxxx> 09:26 am Sunday, August
16, 2009 >>>
Are there any things that can be done to make the percentage of success

greater when obtaining a window handle?  It seems that these "Find"
calls 
fail based on cursor positions or some other controllable conditions. 
Is 
there things that might be considered before calling these functions? 
Perhaps moving focus to a known location or routing the JAWS cursor to
the 
PC cursor?  Will these functions fail if the application currently does
not 
have any window in focus or the mouse is positioned outside the window?
 I 
would like to make several applications more reliable.

Don Marang

__________�
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: