[jawsscripts] Re: Finding A Graphic Script

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 19 Jul 2012 22:57:30 +1000

yep, That's what Jackie was refering to.

what used to be called HomeRow in maybe Jaws10 and downwards, is now called 
Script Utility mode.

It's FS's window hierarchy and technical attributes exploration utility, 
where one can begin to glean some of the specific technical information 
about various windows, which encompass various areas of the screen that you 
might be interested in locating/clicking, that then facilitating knowing 
what parameters to put in to one's script, in order to locate that window 
onScreen, for doing stuff, like looking for text or graphics inside, etc.

You know what though steve, If your unfamiliar with that utility, and/or any 
of those investigative processes/terms, might I suggest, you may wanna try 
what I believe to be a wonderful access solution tool, developed by our 
resident snowman, which is anything but cold, hahaha, called HotSpotClicker?

http://www.hotspotclicker.org

It was developed to facilitate solving what can often be a raterh large 
issue for non-scripter types, which is, as it's name suggests, to solve the 
not insubstantial problem , of locating certain, "hotspots," on the screen 
that one wishes to locate, and, funnily enough, to click there!  Or, do a 
whole whole bunch of other things too, that, as your discovering, often need 
quite a bit of knowledge and no-how to accomplish in raw scripting land 
doing it oneself.

Have you heard about it before? Of course like any good and 
flexible/powerful tool, it too has got it's learning curve, but, in my view, 
it's a whole bunch more easily learnable, unless your just totally into the 
whole programming languages thing, than raw scripting is.
It's got both a wizard-driven front end to it's two Spot assignment 
functions, ControlAltShiftA, and ControlAltShiftG, You'll want the latter 
version, g for graphics, and text find functionality,)
and, also, a manual spot definition editor as well.
In there you can also shove your own user created functions, and an absolute 
heap of the hair pulling back end grind script coding, is done for you.
Courtesy of one of the country's hottest Scripters!


And when one learns it's caveats, and learns to
fill in the questions accurately, and most importantly, learns to remove 
just the right amount of dynamic information for the various window types it 
asks you about during definition, which is the thing that most quickly trips 
people up using hsc for the first time,
and which most quickly minimizes joy, then, it may be of help to you?
Left Clicking is just one, of the, ooh, 30 or so actions I think that it has 
in there? and you can either attach them to Hotkeys, or say no to that 
question, and leavem in a hotspot listing, accessible via ControlAltShiftF1.

Check it out maybe?

hth.
Geoff c.

----- Original Message ----- 
From: "Hicks Steven (CORNWALL IT SERVICES)" <steven.hicks@xxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, July 19, 2012 5:34 PM
Subject: [jawsscripts] Re: Finding A Graphic Script


> Ah right, that says script utility, not sure what that is all about :-)
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx 
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jackie McBride
> Sent: 19 July 2012 05:47
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: Finding A Graphic Script
>
> Steve, I think u may have misinterpreted what I said--I said I thought 
> that winkey+jawskey+numpad dash also turned on & off home row in the 
> desktop layout. I likely didn't make myself clear.
>
> Geoff, I cannot remember now where I read that 0 could represent the 
> handle of a top level window. I looked in some of the obvious places but 
> couldn't find it. I don't think I ate the wrong kind of mushrooms, 
> however.
>
> On 7/18/12, Steven Hicks <Steven.HicksSM@xxxxxxxxxxxxx> wrote:
>> Thanks, JAWS key plus - on the nmumpad turns on and off the JAWS cursor.
>>
>>
>> -----Original Message-----
>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jackie McBride
>> Sent: 18 July 2012 21:09
>> To: jawsscripts@xxxxxxxxxxxxx
>> Subject: [jawsscripts] Re: Finding A Graphic Script
>>
>> Well, I have a netbook, I use jawsKey winkey-dash, but I think u can
>> also use the minus on the numpad in place of the dash if you've got 1.
>>
>> On 7/18/12, Steven Hicks <Steven.HicksSM@xxxxxxxxxxxxx> wrote:
>>> Thanks, how do I turn on the home row utility?
>>>
>>>
>>> -----Original Message-----
>>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jackie McBride
>>> Sent: 18 July 2012 20:48
>>> To: jawsscripts@xxxxxxxxxxxxx
>>> Subject: [jawsscripts] Re: Finding A Graphic Script
>>>
>>> Steve, 1 of the things which can be helpful is to use the Jaws
>>> HomeRow utility to determine the relationship of the current window
>>> to the graphic u wish to find. So--start the homerow utility, route
>>> it to current (f5) then u might wanna do some exploring w/tab & shift
>>> tab, as well as f2 & shift f2, to see where the graphics are in
>>> relaition to the current window. The more u can *narrow* your search,
>>> the better your chances of success. I know that seems a bit
>>> counterintuitive, but it's like locating a paper on a desk as opposed to 
>>> a whole room.
>>>
>>> On 7/18/12, Steven Hicks <Steven.HicksSM@xxxxxxxxxxxxx> wrote:
>>>> Hi,
>>>>
>>>> Script NextCall ()
>>>> If (FindGraphic(GetCurrentWindow(),"Next
>>>> Call",S_Top,S_Unrestricted)) then
>>>> JAWSCursor()
>>>> SayString("Next Call")
>>>> Else
>>>> SayString("Graphic match not found") EndIf EndScript
>>>>
>>>> This is my modified script and the graphic still isn't being found
>>>> as the else statement of "Graphic not found" is triggering.
>>>>
>>>> No idea where to go from here but I feel that it is almost there.
>>>>
>>>> -----Original Message-----
>>>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>>>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Marten Post
>>>> Uiterweer
>>>> Sent: 18 July 2012 19:24
>>>> To: jawsscripts@xxxxxxxxxxxxx
>>>> Subject: [jawsscripts] Re: Finding A Graphic Script
>>>>
>>>> Hi Steve,
>>>>
>>>> Is this something you are looking for?
>>>>
>>>> Script NextCall ()
>>>> If (FindGraphic(0,"Next Call",S_Top,S_Unrestricted)) then
>>>> SayString("Next
>>>> Call")
>>>> leftmousebutton()
>>>> EndIf
>>>>
>>>>
>>>> you can also use:
>>>> If (FindGraphic( getcurrentwindow(),"Next
>>>> Call",S_Top,S_Unrestricted)) then
>>>>
>>>> Regards, Marten
>>>> On Wed, 18 Jul 2012 19:02:36 +0100 Steven Hicks
>>>> <Steven.HicksSM@xxxxxxxxxxxxx> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I wonder if anyone is able to help please, I have listed my script
>>>>> below
>>>> but for some reason, it doesn't seem to do anything at all, I can
>>>> use the JAWS cursor to move around the screen and find the graphic
>>>> called Next Call with no problem but executing the shortcut key
>>>> assigned to the script doesn't seem to do anything.
>>>>>
>>>>> Script NextCall ()
>>>>> If (FindGraphic(0,"Next Call",S_Top,S_Unrestricted)) then
>>>>> JAWSCursor()
>>>>> SayString("Next Call")
>>>>> EndIf
>>>>> EndScript
>>>>>
>>>>> I guess I could try adding an else which would give me a check on
>>>>> whether
>>>> if it actually finding the graphic or not which would be a starting
>>>> point?
>>>>>
>>>>> -----Original Message-----
>>>>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>>>>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jackie
>>>>> McBride
>>>>> Sent: 18 July 2012 00:11
>>>>> To: jawsscripts@xxxxxxxxxxxxx
>>>>> Subject: [jawsscripts] Re: Finding A Graphic Script
>>>>>
>>>>> Steven, remember that FindGraphic returns an integer. So:
>>>>> if (                FindGraphic(0,"Next record",S_Top,S_Restricted))
>>>>> then
>>>>>    LeftMouseButton()
>>>>> endif
>>>>>
>>>>>
>>>>> On 7/17/12, Steven Hicks <Steven.HicksSM@xxxxxxxxxxxxx> wrote:
>>>>> > Hi friends,
>>>>> >
>>>>> >
>>>>> > I have an application which has a line of four buttons which
>>>>> > don't appear to be standard graphical buttons, they are graphics
>>>>> > which I have to manually label.
>>>>> >
>>>>> > I have written a script using the FindGraphic(0,"Next in
>>>>> > list",S_Top,S_Restricted). key word and it seems to work and find
>>>>> > the graphic fine.
>>>>> >
>>>>> > I would like to expand this script so that I can confirm that I
>>>>> > am on the graphic and if so, I would then like to perform a left
>>>>> > mouse botton to click it.
>>>>> >
>>>>> > Does anyone have any suggestions on how I may do this please?
>>>>> >
>>>>> > My script looks like the following at the moment:
>>>>> >
>>>>> >
>>>>> >
>>>>> > Script(NextRecord)
>>>>> >
>>>>> >                 FindGraphic(0,"Next record",S_Top,S_Restricted)
>>>>> >
>>>>> > EndScript()
>>>>> >
>>>>> >
>>>>> >
>>>>> > Any help would be much appreciated,
>>>>> >
>>>>> >
>>>>> >
>>>>> > Steve.
>>>>> >
>>>>> >
>>>>> >
>>>>> > P.s.  I could even consider using the IfSameKey I think it is so
>>>>> > that I press the assigned shortcut key twice to execute the left
>>>>> > mouse
>>>> button.
>>>>> >
>>>>> >
>>>>> >
>>>>> > Take care all.
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > __________
>>>>> >
>>>>> > View the list's information and change your settings at
>>>>> > //www.freelists.org/list/jawsscripts
>>>>> >
>>>>> >
>>>>>
>>>>>
>>>>> --
>>>>> Blame the computer--why not? It can't defend itself & occasionally
>>>>> might even be the culprit Jackie McBride Ask Me Computer Questions at:
>>>>> www.pcinquirer.com Jaws Scripting training materials:
>>>>> www.screenreaderscripting.com
>>>>> homePage: www.abletec.serverheaven.net __________
>>>>>
>>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Blame the computer--why not? It can't defend itself & occasionally
>>> might even be the culprit Jackie McBride Ask Me Computer Questions at:
>>> www.pcinquirer.com Jaws Scripting training materials:
>>> www.screenreaderscripting.com
>>> homePage: www.abletec.serverheaven.net __________
>>>
>>> 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
>>>
>>>
>>
>>
>> --
>> Blame the computer--why not? It can't defend itself & occasionally
>> might even be the culprit Jackie McBride Ask Me Computer Questions at:
>> www.pcinquirer.com Jaws Scripting training materials:
>> www.screenreaderscripting.com
>> homePage: www.abletec.serverheaven.net __________
>>
>> 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
>>
>>
>
>
> --
> Blame the computer--why not? It can't defend itself & occasionally might 
> even be the culprit Jackie McBride Ask Me Computer Questions at: 
> www.pcinquirer.com Jaws Scripting training materials: 
> www.screenreaderscripting.com
> homePage: www.abletec.serverheaven.net
> __________
>
> 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: