[jawsscripts] Re: General Scrip Enquiry

  • From: "Jonathan C. Cohn" <jon.c.cohn@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 6 Nov 2014 17:48:57 -0500

I generally use a setRestriction when working with the JAWS cursor so that I 
know exactly how  much of the screen JAWS will consider part of the text. 
Generally don’t forget that anytime you are  using the JAWS cursor there might 
be issues if one part of your application is obscured by another application. I 
have had great results recently by using Jaws functions to click on a MSAA 
object with a specific name. You would have to use one of the inspection tools 
to see if your graphic has an associated MSAA object or element 
 
Best wishes,

Jonathan



On Nov 4, 2014, at 5:45 AM, Hicks Steven (CORNWALL IT SERVICES) 
<steven.hicks@xxxxxxx> wrote:

> Hi,
> Just assigned a bit of time to work on this script, would you be prepared to 
> try to help me out please?
> 
> At the moment, I have the following:
> 
> SaveCursor()
> GetAppMainWindow(GetCurrentWindow())
> JawsCursor()
> RouteJawsToPc()
> JawsPageUp() ;to position it at top of screen ...
> ;This is where I would enter the find command line, the label I am looking 
> for is "Next Record" with a capital N and a capital R.
> PcCursor()
> RestoreCursor()
> 
> 
> might be better. This takes a lot of experimentation, but GetFocus() is 
> likely way too narrow & won't produce the
> 
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx 
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jackie McBride
> Sent: 03 September 2014 13:41
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: General Scrip Enquiry
> 
> Warning: This message contains unverified links which may not be safe.  You 
> should only click links if you are sure they are from a trusted source.
> Steven, several things.
> 
> 1) Rod already pointed out your problem w/the invisible cursor--nice catch 
> Rod! Excellent student of mine.
> 
> 2) U need to make absolutely sure your jaws/invisible cursor is where u think 
> it is, & u haven't. Remember that your mouse/invisible cursor can be 
> anywhere, not necessarily even in your app. So your lines should look like:
> SaveCursor()
> JawsCursor()
> RouteJawsToPc()
> JawsPageUp() ;to position it at top of screen ...
> PcCursor()
> RestoreCursor()
> 
> 3) Your window definition seems to me to be too narrow, i.e.,
> GetAppMainWindow(GetCurrentWindow()) might be better. This takes a lot of 
> experimentation, but GetFocus() is likely way too narrow & won't produce the 
> results u want.
> 
> 4) Remember that your 2nd parameter to the FindGraphic() function is always 
> case sensitive, so ensure your find is exactly the way you've labeled the 
> graphic.
> 
> On 9/3/14, Alberto Zanella <alberto.zanella@xxxxxxxxxxx> wrote:
>> Have you tried search from bottom instead from top of the window?
>> I experienced different results in Windows 8
>> 
>> Alberto
>> 
>> On 02/09/2014 11:34, Hicks Steven (CORNWALL IT SERVICES) wrote:
>>> Hi friends,
>>> I am trying to script two buttons in an application called Quetzal
>>> which is a service management application, I have listed my code
>>> below, just wondering if anyone has any suggestions on why they
>>> refuse to work please?
>>> Basically the two buttons are graphics that I have labelled and I
>>> need the script to go look for them and find them and place the JAWS
>>> curson on them so that I can left click if they are found.
>>> Whatever I do, it won't seem to find the graphic for some reason.
>>> I can manually go to the screen location but this is a real pain as
>>> if something changes on the screen e.g. the screen resolution, you
>>> have to then manually go and change the scripts again.
>>> 
>>> 
>>> 
>>> Script MoveToTheNextRecord ()
>>> var
>>>     handle hwnd
>>> InvisibleCursor()
>>> Let hwnd = GetAppMainWindow (GetFocus()) if (FindGraphic (hwnd, "Next
>>> Record", S_TOP, S_UNRESTRICTED)) THEN
>>>     SayString ("it worked")
>>> LeftMousebutton()
>>> else
>>>     SayString ("not so lucky")
>>> endif
>>> PCCursor()
>>> EndScript
>>> 
>>> Script MoveToThePreviousRecord ()
>>> var
>>>     handle hwnd
>>> Let hwnd = GetAppMainWindow (GetFocus()) if (FindGraphic (hwnd,
>>> "Previous Record", S_TOP, S_UNRESTRICTED)) THEN
>>>     SayString ("it worked")
>>> LeftMousebutton()
>>> else
>>>     SayString ("not so lucky")
>>> endif
>>> EndScript
>>> 
>>> 
>>> 
>>> 
>>> *********************************************************************
>>> ***********************************************
>>> 
>>> This message may contain confidential information. If you are not the
>>> intended recipient please inform the sender that you have received
>>> the message in error before deleting it.
>>> Please do not disclose, copy or distribute information in this e-mail
>>> or take any action in reliance on its contents:
>>> to do so is strictly prohibited and may be unlawful.
>>> 
>>> Thank you for your co-operation.
>>> 
>>> NHSmail is the secure email and directory service available for all
>>> NHS staff in England and Scotland NHSmail is approved for exchanging
>>> patient data and other sensitive information with NHSmail and GSi
>>> recipients NHSmail provides an email address for your career in the
>>> NHS and can be accessed anywhere
>>> 
>>> *********************************************************************
>>> ***********************************************
>>> 
>>> __________
>>> 
>>> 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
>> 
>> 
> 
> 
> --
> Jackie McBride
> Author of the Upcoming Book
> “Beyond Baffled: the Technophobe’s Guide to Creating a Website”
> www.brighter-vision.com Where Visionaries & Technology Unite Jaws Scripting 
> training www.screenreaderscripting.com __________
> 
> View the list's information and change your settings at 
> //www.freelists.org/list/jawsscripts
> 
> 
> ********************************************************************************************************************
> 
> This message may contain confidential information. If you are not the 
> intended recipient please inform the
> sender that you have received the message in error before deleting it.
> Please do not disclose, copy or distribute information in this e-mail or take 
> any action in reliance on its contents:
> to do so is strictly prohibited and may be unlawful.
> 
> Thank you for your co-operation.
> 
> NHSmail is the secure email and directory service available for all NHS staff 
> in England and Scotland
> NHSmail is approved for exchanging patient data and other sensitive 
> information with NHSmail and GSi recipients
> NHSmail provides an email address for your career in the NHS and can be 
> accessed anywhere
> 
> ********************************************************************************************************************
> __________�
> 
> 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: