[jawsscripts] Re: making progress with UIA, but need some help

  • From: John Martyn <johnrobertmartyn@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 19 Nov 2014 05:13:03 -0700

To my knowledge, DPI hasn't been fixed.
John
On 11/18/2014 3:10 PM, Soronel Haetir wrote:
> Has FS fixed the issues with jaws and DPI awareness where the reported
> coordinates may not be scaled to what the active program expects?  If
> not then I would expect invoke to be far more reliable in those cases
> where the program supports it.
>
> On 11/18/14, John Martyn <johnrobertmartyn@xxxxxxxxx> wrote:
>> I do because invoke doesn't always work. The invoke only works if you
>> have an invoke pattern.
>> John
>> On 11/18/2014 12:31 PM, Soronel Haetir wrote:
>>> John,
>>>
>>> You prefer the cursor positioning and LeftMouseButton over the
>>> invokable pattern?
>>>
>>> On 11/18/14, John Martyn <johnrobertmartyn@xxxxxxxxx> wrote:
>>>> Try this
>>>> oGroups(i).GetTogglePattern().toggle
>>>> or
>>>> oGroups(i).SetFocus()
>>>> or if you want to click something
>>>> left = oGroups(i).boundingRectangle.left
>>>> oGroups(i).boundingRectangle.top
>>>> MoveTo(left+5, top+5,0)
>>>> LeftMouseButton()
>>>> HTH
>>>> John
>>>> On 11/18/2014 9:59 AM, Soronel Haetir wrote:
>>>>> If you are able to get the UIA element for the item you want to
>>>>> activate I would suggest you try getting the invokable pattern from
>>>>> that element then calling Invoke() on the pattern handler,
>>>>>
>>>>> On 11/18/14, Jason Fayre <jfayre@xxxxxxxxx> wrote:
>>>>>> Hello,
>>>>>> Thanks to John's wonderful examples and a lot of tinkering, I now have
>>>>>> my script doing most of what I want.
>>>>>> Here is where I am stuck though.
>>>>>> My script is able to grab all of the items from a list on the page
>>>>>> with an automation id of "customerNumber_listbox". It then places all
>>>>>> of these items into a dialog where you can arrow down to select the
>>>>>> one you want.
>>>>>> Where I'm stuck is how to activate the item once you press Enter. The
>>>>>> SetFocus isn't working. Normally after you type a search, you arrow
>>>>>> down to get into the list and press Enter on the item you want, or
>>>>>> click on it with the mouse.
>>>>>> I tried using GetClickablePoint, but X and Y are coming up zero.
>>>>>> Are you able to use GetClickablePoint for elements on web pages?
>>>>>> This list is not a standard unordered list.  The list is dynamically
>>>>>> populated as you type into the search box.  If focus moves away from
>>>>>> the edit field, the list disappears.  You cannot use the virtual
>>>>>> cursor to access this list.
>>>>>> As I said before, I'm very new to this stuff, so hope this makes some
>>>>>> kind of sense.
>>>>>> This is an internal site, so can't send a sample to the list.
>>>>>> __________�
>>>>>>
>>>>>> View the list's information and change your settings at
>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>
>>>>>>
>>>> __________�
>>>>
>>>> View the list's information and change your settings at
>>>> //www.freelists.org/list/jawsscripts
>>>>
>>>>
>> __________�
>>
>> View the list's information and change your settings at
>> //www.freelists.org/list/jawsscripts
>>
>>
>

__________�

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

Other related posts: