[jawsscripts] Re: Jaws cursor question

  • From: Jackie McBride <abletec@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 5 Mar 2010 14:26:30 -0700

Actually, Geoff, it should have been LeftMouseButton, as u c amended
in my last snippet.

On 3/5/10, Jackie McBride <abletec@xxxxxxxxx> wrote:
> Fernando:
>
> Sure. Let's say u have a graphic labeled ClickMe. Note the
> capitalization of the c & e, because that's important.
>
> The code would look like so:
> if (FindGraphic(GetCurrentWindow(), "ClickMe", s_top, s_unrestricted)) then
> LeftMouseButton()
> else
> say("ClickMe not found", ot_message)
> endif
>
> The GetCurrentWindow(), s_top, & s_unrestricted may be changed
> according to your needs, though these generally work. ClickMe was just
> an example & illustrates the importance of ensuring that the graphic
> label must be quoted in the script exactly for it to work properly.
>
> HTH u.
>
> On 3/5/10, Jackie McBride <abletec@xxxxxxxxx> wrote:
>> Sorry, Geoff. Boy, that is what I get for trying to write letters &
>> construct a drupal website at the same time. Consider me bad.
>>
>> On 3/5/10, Geoff Chapman <gch@xxxxxxxxxxxxxxxx> wrote:
>>> Yep, all jackie says is totally legit and true here, except for one
>>> tincy
>>> line of code which I fear I must challenge.
>>> ... Sorry miss Jackie. <grin.>
>>>
>>> I think the leftClick bit of the code, is meant to be:
>>>
>>> LeftButton ()
>>>
>>> not
>>>
>>> LeftButtonDown ()
>>>
>>> which I think is going to lock his mouse if he leaves that in?
>>>
>>> would not it?
>>>
>>> Also Bob, if you feel like a more wizard based approach to this,
>>> admittedly
>>> a more complex one at the beginning as it requires a bit of jiggling to
>>> get
>>> it all going, and like every good tool, needs time and energy to learn
>>> it's
>>> pitfalls, but, over time you may like to investigate
>>>
>>> hotSpotClicker,
>>>
>>> at:
>>> http://www.hotspotclicker.org
>>>
>>> whose major job, in summary,  is to do exactly what your talking about.
>>>
>>>
>>> but can put a few more things in place which can help, if you find your
>>> "hotSpot", that you need to click, moves around at all. often they don't
>>> of
>>> course, which means Jackie's script will work just fine for simple
>>> things.
>>> But, hotspotClicker provides a kind of menu driven wizard front end, for
>>> situations where you might find you have to do a whole bunch of that
>>> stuff,
>>> but don't know how to script it all, and move around hierarchy's of
>>> windows,
>>> and all that codey type deal.
>>>
>>> I love the tool myself and am a big proponent, but then, I would be,
>>> <grin,>
>>> as I was kinda heavily involved in it's design and testing for a number
>>> of
>>> years. of course I didn't write any of it, that was done by the master,
>>> jim
>>> snowbarger, whose just a  fantastic scripter in my view.
>>>
>>> cool tool!
>>>
>>> it's got it's own learning curve though, like everything good pretty
>>> much
>>> eh.
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From: "Bob Kennedy" <intheshop@xxxxxxx>
>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>> Sent: Saturday, March 06, 2010 4:25 AM
>>> Subject: [jawsscripts] Re: Jaws cursor question
>>>
>>>
>>>> I'll give it a try.  I can't play around until I'm back in the office
>>>> Monday
>>>> but this gives hope.
>>>>
>>>> Thanks a bunch!
>>>> ----- Original Message -----
>>>> From: "Jackie McBride" <abletec@xxxxxxxxx>
>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>> Sent: Friday, March 05, 2010 12:19 PM
>>>> Subject: [jawsscripts] Re: Jaws cursor question
>>>>
>>>>
>>>>> Bob, your code would look something like:
>>>>> Script ClickCoordinates()
>>>>> ; clicks coordinates to get phone working
>>>>> SaveCursor()
>>>>> JawsCursor()
>>>>> RouteJawsToPc()
>>>>> if (moveTo(x, y)) then ;move to was successful x & y are coordinates
>>>>> LeftButtonDown()
>>>>> else
>>>>> say("cannot move to desired coordinates.", ot_message)
>>>>> endif
>>>>> RestoreCursor()
>>>>> EndScript
>>>>>
>>>>> I generally do not llike move to scripts as they can be broken by
>>>>> things like whether the screen is maximized & the screen resolution
>>>>> has changed, but sometimes it's the only way.
>>>>>
>>>>> 1 thing I would suggest, however, is to make certain all graphics are
>>>>> being spoken (go to your jaws configuration manager by pressing insert
>>>>> keyboard (not numpad) 6 while in your application. Press alt s, then
>>>>> g, then tab to the radio buttons for the graphics usually about 5 tabs
>>>>> in. It may say speak labeled graphics, down arrow to all & press
>>>>> enter. Save your changes & see if perchance jaws announces a graphic
>>>>> at the location. U may also need to go back into that dialog & change
>>>>> the maximum & minimum graphic height & width to larger & smaller
>>>>> values, respectively to give jaws instruction to look for something
>>>>> other than the default as graphics.
>>>>>
>>>>> If there is a graphic there, then the graphic can be labeled & a
>>>>> script can be written to find & click on that graphic.
>>>>>
>>>>> HTH.
>>>>>
>>>>>
>>>>>
>>>>> On 3/5/10, Bob Kennedy <intheshop@xxxxxxx> wrote:
>>>>>> Hadn't heard of that one yet.  Thanks a bunch!
>>>>>> ----- Original Message -----
>>>>>> From: "Homme, James" <james.homme@xxxxxxxxxxxx>
>>>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>>>> Sent: Friday, March 05, 2010 11:54 AM
>>>>>> Subject: [jawsscripts] Re: Jaws cursor question
>>>>>>
>>>>>>
>>>>>>> Hi Bob,
>>>>>>> Try the MoveTo function.
>>>>>>>
>>>>>>> Jim
>>>>>>>
>>>>>>> Jim Homme,
>>>>>>> Usability Services,
>>>>>>> Phone: 412-544-1810
>>>>>>> Skype: jim.homme
>>>>>>> Internal recipients,  Read my accessibility blog
>>>>>>>
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>>>>>>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bob Kennedy
>>>>>>> Sent: Friday, March 05, 2010 8:48 AM
>>>>>>> To: jawsscripts@xxxxxxxxxxxxx
>>>>>>> Subject: [jawsscripts] Jaws cursor question
>>>>>>>
>>>>>>> Hi all,
>>>>>>> Keep in mind I'm very new to scripting so be gentle.  hahaha
>>>>>>>
>>>>>>> I have a program at work that uses 2 screens.  The phone is dialed
>>>>>>> in
>>>>>>> one
>>>>>>> window, and the customer info is in the other side of the window.
>>>>>>>
>>>>>>> You can control tab between windows with no problems.  However, in
>>>>>>> order
>>>>>>> for the phone to work in the customer screen, you have to click on
>>>>>>> an
>>>>>>> area of the screen Jaws doesn't always see.
>>>>>>>
>>>>>>> I worked with a sighted person yesterday and the area I have to
>>>>>>> click
>>>>>>> on
>>>>>>> stays in a consistent position.
>>>>>>>
>>>>>>> Here is my question.  Is there a way to write a script that sends
>>>>>>> the
>>>>>>> Jaws
>>>>>>>
>>>>>>> cursor to a know position?
>>>>>>>
>>>>>>> Using the alt delete keys, Jaws gives me the same coordinates each
>>>>>>> time
>>>>>>> we
>>>>>>>
>>>>>>> tried it.  I am not able using the normal key strokes to make the
>>>>>>> Jaws
>>>>>>> cursor go to the same place.  I supposed I could write a line that
>>>>>>> required the Jaws cursor to have a long series of next character
>>>>>>> commands
>>>>>>> but I'd like to know if I could to go straight to a pixel position.
>>>>>>>
>>>>>>> I need to do a left mouse click in order to make the phone line
>>>>>>> active
>>>>>>> after the phone dials the number.
>>>>>>>
>>>>>>> Thanks for any help.
>>>>>>>
>>>>>>>
>>>>>>> __________
>>>>>>> Visit and contribute to The JAWS Script Repository
>>>>>>> http://jawsscripts.com
>>>>>>>
>>>>>>> View the list's information and change your settings at
>>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>>
>>>>>>>
>>>>>>> This e-mail and any attachments to it are confidential and are
>>>>>>> intended
>>>>>>> solely for use of the individual or entity to whom they are
>>>>>>> addressed.
>>>>>>> If
>>>>>>>
>>>>>>> you have received this e-mail in error, please notify the sender
>>>>>>> immediately and then delete it.  If you are not the intended
>>>>>>> recipient,
>>>>>>> you must not keep, use, disclose, copy or distribute this e-mail
>>>>>>> without
>>>>>>> the author's prior permission.  The views expressed in this e-mail
>>>>>>> message
>>>>>>>
>>>>>>> do not necessarily represent the views of Highmark Inc., its
>>>>>>> subsidiaries,
>>>>>>>
>>>>>>> or affiliates.
>>>>>>> __________
>>>>>>> Visit and contribute to The JAWS Script Repository
>>>>>>> http://jawsscripts.com
>>>>>>>
>>>>>>> View the list's information and change your settings at
>>>>>>> //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
>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Change the world--1 deed at a time
>>>>> Jackie McBride
>>>>> www.abletec.serverheaven.net
>>>>> Please join me Saturday, 11/7, on my walk against breast cancer by
>>>>> making a donation at:
>>>>> http://main.acsevents.org/goto/larkspur>
>>>>> __________
>>>>> Visit and contribute to The JAWS Script Repository
>>>>> http://jawsscripts.com
>>>>>
>>>>> View the list's information and change your settings at
>>>>> //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
>>>> //www.freelists.org/list/jawsscripts
>>>>
>>>
>>>
>>> --------------------------------------------------------------------------------
>>>
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com
>>> Version: 8.5.435 / Virus Database: 271.1.1/2722 - Release Date: 03/04/10
>>> 19:34:00
>>>
>>> __________
>>> Visit and contribute to The JAWS Script Repository
>>> http://jawsscripts.com
>>>
>>> View the list's information and change your settings at
>>> //www.freelists.org/list/jawsscripts
>>>
>>>
>>
>>
>> --
>> Change the world--1 deed at a time
>> Jackie McBride
>> www.abletec.serverheaven.net
>> Please join me Saturday, 11/7, on my walk against breast cancer by
>> making a donation at:
>> http://main.acsevents.org/goto/larkspur>
>>
>
>
> --
> Change the world--1 deed at a time
> Jackie McBride
> www.abletec.serverheaven.net
> Please join me Saturday, 11/7, on my walk against breast cancer by
> making a donation at:
> http://main.acsevents.org/goto/larkspur>
>


-- 
Change the world--1 deed at a time
Jackie McBride
www.abletec.serverheaven.net
Please join me Saturday, 11/7, on my walk against breast cancer by
making a donation at:
http://main.acsevents.org/goto/larkspur>
__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: