[jawsscripts] Re: How do I change these lines?

  • From: Jim Bauer <holdsworthfan@xxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sun, 07 Dec 2008 15:31:08 -0600

To take that a step further: if you aren't planning on using JAWS's
constants (true, false, etc), global variables, or messages, you could
actually write a script set that didn't include any of those files.
Grin.

HJConst is almost always used because JAWS's constants  are integral
to seamless creation of readable, pain-free logic while coding; the
other two are included only if variables/messages within are to be
used at any time during the scripting project.

The general rule of thumb is as follows: store all definitions of
variables and constants in a header with the name of your choice;
place all messages (strings of text that are often repeated or may
require future modification) in a message file; include both in your
source (JSS) file with "include" statements that take the form include
"scriptFile", where scriptFile is the name--extension included--of the
file to be included in the binary at compilation time.

So, in answer to your question: we'll assume you've got some
definitions lined up in a file called "norton.jsh". (You could use any
extension you like, but JSH is standard for header files.) You would
include it in norton.jss with the following line:
include "norton.jsh"


HTH,
Jim
Original message
from: "Mark" <torgersonenator@xxxxxxxxx>
subject: [jawsscripts] How do I change these lines?
date: Sun, 7 Dec 2008 12:34:25 -0800

>Hi
>     As I recall there are a number of statements that need to be made in the 
> beginning of a script file. These are required in order for some of the 
> commands to run. This being the case I barrowed these lines from another 
> script and pasted them in my own script file. It works but the lines make 
> reference to the program they were original intended for. How do I customize 
> them for the program I am using them for? These lines I borrowed are as 
> follows.
>include "hjconst.jsh"
>
>include "hjglobal.jsh"
>
>include "Windows Mail.jsm"
>
>include "Windows Mail.jsh"
>
>include "OutlookCustomSettings.jsm"
>
>include "OutlookCustomSettings.jsh"
>
>include "HjHelp.jsh"
>
>include "common.jsm"
>
>use "OutlookCustomSettings.jsb"
>
>include "oluo.jsm"
>
>use "olUserOptions.jsb"
>
>GLOBALS
>
>string gs_PrevBuffer
>
>
>As you can tell they are for windows mail. Now I want to change them to 
>Norton's. How do I do this? What all is involved?
>     Thank you.
>
>God bless,
>Mark

__________ 
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: