[jawsscripts] Re: Adding other script files to my application script

  • From: Jeremy Richards <jeremy.richards7@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sun, 20 Aug 2017 21:59:10 -0700

Thank you Jonathan for the great explanation and advice. I thought I
somewhat understood this subject matter but you're explanation has pointed
out flaws in my understanding. :) 

JR

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jonathan Cohn
Sent: Sunday, August 20, 2017 1:46 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Adding other script files to my application
script

None of these files are actually script files they are more like
definitions. 

The .jsh files are generally used to associate constants with values.
Something likemsaa_toolbar = -7 So you can use a descriptive name instead of
a number when coding. So if you are not using any UIA functions then you
won't need the UIA.jsh On the other hand, it shouldn't effect the final
compiled code at all if you include one of these files and yet don't use
them. 

.

Where you are truly adding in code from libraries is when you use the "use"
command.  This command allows all scripts and functions available from the
specified  module to be available in your scripts. Several of these you
don't need to include because they are in "use" statements from the
default.jss file and are thereby automatically available to you to use.

So any string of characters in your script has to be defined implicitly or
explicitly variables constants and globals are defined in .jsh, or .jsm
files by using an include command. You can easily view these files with
script utility any text editor. Functions and Scripts that are not defined
either in JAWS core or in the default.jss file and all the files that it
includes must either be defined by you or else be incorporated with use
statements.
  
HTH,

Jonathan

__________o?=

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: