[jawsscripts] Re: Script help

Wow David, this little Debug titbit re SayInteger and what one should expect
if Handle of window was located, and what will be returned if it isn't,
was sure a new one for this newby, and very
invaluable I think it! so thanks once again for piping up and taking what I
know is valuable time and patient energies to help people out who are just
new and struggling
around here.  Your expended energies are very much appreciated out here!

Can I just say to you stephen, for what it may or may not b worth, and other
people can come right in and howl me down if desired, <grin,> but, if you
are coming at this not from a programmer's background, as indeed I
personally have not myself,
and just from the background of wanting to get on and do your thing, and
wanting jaws to facilitate you doing that in the least expended energy
method possible, I believe anywayz, that you may quickly become
disillusioned and frustrated with this jaws scripting lark.  Again, please
forgive me if this is old news to you, or if the majority of people up here
may disagree with me and my particular philosophic bent on this, and I'm not
meaning by my thoughts here, that one cannot of course hang around lists
like this, and ask people and listen to what goes down on other's questions,
study manuals, tutorials, and try stuff etc,
But, well, in my view, the deal is what I believe is called rather a, "steep
learning curve." that is, there's in my view again, a fair bit of stuff one
has to learn about it all, before one gets to the joys of actually solving
the real problems that one encounters in one's every day access needs.

please Don't get me wrong, I believe there's just awesome power in all these
folks who can learn to harness what Jaws can do, but, just be aware that
they don't call it a "language," for nothing!  if you went into a country
where you didn't know the language everyone spoke there, even a simple thing
like getting a cup of coffee, or finding a railway station, which you'd feel
in your own mind is just a simple easy peasy thing you wanna do, is gunna be
remarkably dificult to do, if you are unaware of the sounds your tongue has
to make, to communicate this so-called simple desire, to those around you,
and have that desire met.
does that make sense?

As you would realize with the language analogy, you get one symbol or sound
of a symnbol wrong in your speech, and you can totally change the word, and
thus give your hearer a totally wrong vibe of what you wanted to do, or
perhaps no idea at all!  From my view, it's the same deal here.
It seems to me we gotta learn enough of the language of how jaws and the
computer wants to be talked to, in order to communicate the simple desire we
may want to realize,
e.,g. "just read this window please over here, that one!"
and, as you'd also realize, learning a whole other language, is not a simple
or fast process.
and must be done bit by bit I guess.

Just to both encourage and also alert you I guess, to the idea that, even
doing simple things, may often not end up quite as simple a process as we
might wish!
and to somehow give yourself the breathing space to allow yourself time to
learn this stuff at a pace your time and interests and energies permit.

BTW, there was an extra W typo at the end of this line I noticed in Rui's
code, which I think you should also eliminate,
i.e. in the line,
MoveToWindow (hWindoww)


Also stephen out of interest, what happens whenn you flip the jawsKey+s
ScreenEcho roter, from SayHighlighted, to All?
when you navigate your list, does all the text in the new window get spoken?
but, in doing tso, does both entries in your list box also get spoken? i.e.
what you've moved off, and what your moving to?
which would break this "quick and dirty," method from being particularly
useful?

And, have you got access to the basics of scripting manual thinggy in jaws
training folder? or on the web? and/or other tutorials that people have done
about scripting? like Jim snowBarger's work etc?

Just my 2 cents worth anywayz stepehn. it can be a fun and exciting
adventure when you can communicate small things and get small joys out of
the computer and jaws, I love it myself when that happens! but, in my view
there can be more than one's desire of pain/frustration/time in learning the
drudgery type bits of studying vouel sounds and how to pronounce junk, (my
language analogy again,) and the like.


From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, February 17, 2009 3:11 AM
Subject: [jawsscripts] Re: Script help


> Hi Steven:
>
> You will first need to define your variable before you can use it.
>
> at the top of your script, you will use the var statement to define
> your variable.  In this case your variable needs to be a handle to hold
> the handle of the window that you are trying to move to.  If you are
> using the example that Rui sent, your var statement would look like
> this:
>
> var handle hWindow
>
> You will need to use home row mode to determine the class of the window
> you are trying to move to.  when you set the output mode to speak the
> class for the window you are looking for, you can use control+f1 to copy
> this value to the clipboard.
>
> You will need to place this value in the line where Rui specified
> "Your Window Class".  Be sure to surround this value with Quotes.
>
> You are also going to need to determine the control id for this window.
> select the Control  output mode in homerow and then use control+f1 to
> copy the control id to the clipboard.  You should then copy this id to
> the field following the window class you specified earlier.
>
> Here is something else you can do to test to see if Jaws was able to
> return the handle for your window.
> place the following statement after the line you just changed.
> Sayinteger (hWindow)
> this will speak the value contained in the hWindow variable.
> If Jaws says 0 then you will know that the window was not found.
> If Jaws speaks another value, then you can assume that jaws found the
> window you wanted.
> Hopefully jaws will then also speak the contents of this window for
> you.
> >>> "Steven Hicks (HICKSSM)" <Steven.HicksSM@xxxxxxxxxxxxx> 03:22 am
> Monday, February 16, 2009 >>>
>
> Just get an error unknown variable HWindow.
>
>
>
> David Farough
> Application Accessibility Coordinator/coordonateur de l'accessibilité
> Information Technology Services Directorate /
> Direction des services d'information technologiques
> Public Service Commission / Commission de la fonction publique
> Email / Courriel:  David.Farough@xxxxxxxxxxxxx
> Tel. / Tél:    (613) 992-2779
> __________
> 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: