[jawsscripts] Re: Scripting A Labeled Graphic

  • From: "John P. Thomas" <johnt@xxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 20 May 2013 20:15:32 -0400

Hi Steven,

I think the formatting of my test script was damaged during the distribution
to the list. Some of the if-then-else-endIf language was hidden inside the
remarks and thus were not used in the script. You can use the
GetCurrentWindow or the GetFocus functions to supply the handle for the
FindGraphic function. Of course you can also use a variable and a Let
statement to do the same thing, as you indicated. You might also try
GetAppMainWindow (GetCurrentWindow()) as an alternative to simply using the
GetCurrentWindow function as parameter 1 in the FindGraphic functions.

If FindGraphic(GetCurrentWindow (),"Previous Record",S_top,S_Unrestricted)
== 1 then 
SayString ("Found the graphic") 
SayLine ()
Else 
SayString ("graphic not found") 
EndIf

John


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Hicks Steven
(CORNWALL IT SERVICES)
Sent: Monday, May 20, 2013 3:42 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Scripting A Labeled Graphic

I tried this test and ii just says test find graphic and nothing else e.g.
found thegraphic or not found.
I think that the issue may be to do with the window handle being incorrect
so I may need to try to do some work on that.


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of John P. Thomas
Sent: 18 May 2013 02:07
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Scripting A Labeled Graphic

Hi Steven,

Try adding these lines to your script. Maybe you know this and are already
doing this type of testing, but if not here it is as a sample.

Script TestFindGraphic ()
SayString ("TestFindGraphic") ; if this is spoken, then you can be sure that
the script itself is being triggered when you press your key stroke.
; if you don't here the above string of text, then you need to fix that
problem first.
If FindGraphic(1,"Previous Record",S_top,S_Unrestricted) == true then ; This
sets up the condition to know if the JAWS script function achieved a true
result i.e. it worked properly according to its own standards.
; The next line will be spoken if the search was successful SayString
("Found the graphic") Else SayString ("graphic not found") ; This is spoken
when the graphic is not found EndIf  EndScript

Are you trying to find a graphic on a webpage?

John


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Hicks Steven
(CORNWALL IT SERVICES)
Sent: Friday, May 17, 2013 4:49 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Scripting A Labeled Graphic

Hi,

My script is below but for some reason, it doesn't appear to do anything,
does anyone have any suggestions please?

Script TestFindGraphic ()
FindGraphic(1,"Previous Record",S_top,S_Unrestricted) EndScript

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jim Snowbarger
Sent: 17 May 2013 03:22
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Scripting A Labeled Graphic

Try the FindGraphic function.

----- Original Message -----
From: "Hicks Steven (CORNWALL IT SERVICES)" <steven.hicks@xxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, May 16, 2013 7:27 AM
Subject: [jawsscripts] Scripting A Labeled Graphic


Hi friends,
I have a button which has had to be a manually labelled graphic, I don't
think that it is a standard control.
Does anyone know if I could write a script to mouse the mouse pointer to
this graphic and check if it is there, if it is, I would like to click the
left mouse button to press it.  If it is not there, not bothered for now if
the script just does nothing.
The Button is called Next Record if that helps.
At the moment, I just manually move the JAWS cursor to the location on the
screen, this seems to work quite effictivly unless the screen resolution
changes of course but I am happy with this for now as I have tried to write
a find script to look for the labelled graphic before but coldn't get it to
work.

Any help would be much appreciated.

Steve.

****************************************************************************
****************************************

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


****************************************************************************
****************************************

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


****************************************************************************
****************************************

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: