[jawsscripts] Re: Find Graphic Question

  • From: "E.J. Zufelt" <everett@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 1 Dec 2008 14:51:46 -0400

Good afternoon Mark,

See the explaination of the parameters below.  Note that you can only use 
the constants if you have imported the correct file at the beginning of your 
script.

In your example the first variable "hWnd" is a reference to a window and the 
second is a constant value containing the graphic label to be searched for.

Taken from the FSDN

Function: FindGraphic
Description
FindGraphic searches for a graphic in the specified window. If the graphic 
is found, then the JAWS cursor is placed on it. The graphic must have a text 
label associated with it because the FindGraphic function searches for text 
labels. Text labels are assigned by the Graphics Labeler.

Returns
Type: Int
Description: "WAS_SUCCESSFUL" = 1, "WAS_NOT_SUCCESSFUL" = 0.


Parameters
Param 1:
Type: Handle
Description: Specify a window handle. Type the name of a variable or choose 
a script function that indicates the window that is to be searched.
Include: Required


Param 2:
Type: String
Description: Type the graphic label that is to be located. The label must be 
typed exactly as it appears in the graphic label file. Enclose the graphic 
label within quotation marks.
Include: Required


Param 3:
Type: Int
Description: Indicate the search direction. Type a constant value to 
indicate the starting point for the search: S_TOP or S_BOTTOM.
Include: Required


Param 4:
Type: Int
Description: Indicate search restriction. Type the name of a constant value 
to indicate whether the search should be restricted to the active window or 
it should extend into all child windows of the active application. Type 
S_UNRESTRICTED to search all application windows or S_RESTRICTED to limit 
the search to the active child window.
Include: Required



HTH,

Everett





----- Original Message ----- 
From: "Mark" <torgersonenator@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, December 01, 2008 2:33 PM
Subject: [jawsscripts] Find Graphic Question


> Hi
>     I am trying to understand the find Graphic command. In the example 
> below from the windows mail scripts, what does (hWnd,scCorner mean?
>
> If FindGraphic(hWnd,scCorner,s_top,s_restricted) then
>
> let sState = msgNotChecked
>
> ElIf FindGraphic(hWnd,scCheckMark,s_top,s_restricted) then
>
> let sState = MSGChecked
>
> EndIf
>
>     Thank you.
>
>
>
> God bless,
>
> Mark
>
> -- 
>      Currently in Pendleton, Eastern Oregon Regional At Pendleton, Oregon 
> Overcast, Fog 36.0°F Wind:S-170° at 5mph
>      Don't use a big word where a diminutive one will suffice.
>      Created by Weather Signature v1.20 . http://www.weathersig.com
>      God loves you!
>      http://www.homebusinessxpert.net/
>      www.donorschoose.org
>
>
> __________
> 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

Other related posts: