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

  • From: Jackie McBride <abletec@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sun, 16 Aug 2009 08:12:50 -0700

Don, u should always route either the jaws or invisible cursor to the
pc because, as u point out, there's no way of knowing where either of
them is. I use either the Jaws home row utility, the ctrl insert f1,
or Doug Lee's most excellent Bx Toolbox to determine what method will
most reliably find a particular window. Not all methods work in all
circumstances. Certainly, if the window has an unique control ID, then
FindDescendantWindow is generally the best bet. Sometimes, if the
class is unique or the window has a name, (not all do) then FindWindow
using either 1 or the other or both parameters can be effective.
Sometimes, u just gotta determine the position in the hierarchy &
traverse it, which is a royall pita. I wish there were a simple way to
do what you're asking (it'd make every1's life easier), however,
unfortunately, it doesn't exist.

On 8/16/09, Donald Marang <donald.marang@xxxxxxxxx> wrote:
> 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
>
>
> ----- Original Message -----
> From: "Jackie McBride" <abletec@xxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Sunday, August 16, 2009 12:57 AM
> Subject: [jawsscripts] Re: detecting the handle variable if it found the
> window or not?
>
>
>>U need 2 either indicate that the window wasn't found & that the
>> action couldn't be performed or u need to look for something
>> different. U don't wanna just leave the user hanging, unable to set
>> focus & unable to go where they wanna go.
>>
>> As for your question about links in the virtual buffer, the function
>> is %keyfor(scriptkeyname) U can download the latest basics of
>> scripting manual from the fs website, in the training section. I
>> recommend highly that u download it & have a look.
>>
>> On 8/15/09, Jitendra <jeet.invincible@xxxxxxxxx> wrote:
>>> Hello, Thank you very much once again, you saved me!
>>> so this way I should call what I think?
>>> if (grip) then
>>>  > SetFocus (grip)
>>> Else
>>> Return
>>> endif
>>> Thank you.
>>> __________
>>> 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
>>>
>>>
>>
>>
>> --
>> Change the world--1 deed at a time
>> Jackie McBride
>> Check out my homepage at:
>> www.abletec.serverheaven.net
>> & please join my fight against breast cancer
>> <http://teamacs.acsevents.org/site/TR?px=1790196&pg=personal&fr_id=3489>
>> __________
>> 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
>>
>
> __________
> 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
>
>


-- 
Change the world--1 deed at a time
Jackie McBride
Check out my homepage at:
www.abletec.serverheaven.net
& please join my fight against breast cancer
<http://teamacs.acsevents.org/site/TR?px=1790196&pg=personal&fr_id=3489>
__________ 
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: