[jawsscripts] Re: please guide me about this variable error

  • From: moin sahil <moin.chamber1@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 15 Nov 2012 16:29:43 -0800

thanks Andrew
now compile is complete
thanks again

On 11/15/12, Andrew Hart <ahart@xxxxxxxxxxxxx> wrote:
> You need to include the following line at the top of your notepad.jss file:
>
> Include "hjconst.jsh"
>
> OT_MESSAGE is a constant defined in hjconst.jsh.  Since it is not
> defined, the compiler is guessing it is a variable, but can't find it
> anyway.  As a result, it doesn't know what to do with it and hence you
> get the error.  the above line tells the compiler to load hjconst.jsh as
> though it were part of your script file.  hjconst.jsh is a file created
> by FS which contains loads of constant declarations which are useful so
> you don't have to remember a whole heap of values for different function
> calls.  You can just use the human-readable name they have given to the
> value.  In this case it is the value for specifying an Output Type of
> MESSAGE.
>
> Hth,
> Andrew.
>
> On 15/11/2012 8:40 PM, moin sahil wrote:
>> hi list,
>> i am beginner in jaws scriptting
>>   i am doing a Exercise which is  in Basics of Scripting
>> but i am facing continuously a variable error when i am compiling
>>   code is below
>> notepad.jsm file code
>> ; Message file for Notepad
>> Messages
>> @MSGText_L
>> This is an example of a long message. This message is only spoken by
>> JAWS when the beginner verbosity setting is in use.
>> @@
>> @MsgText_S
>> This is an example of a short message.
>> @@
>> EndMessages
>> notepad.jss code
>> Script SpeakMessage ()
>> SayFormattedMessage (OT_MESSAGE, MsgText_l, MsgText_S)
>> EndScript
>> Compile Error
>>   Unknown variable OT_MESSAGE
>> please guide me if any1 know that why i am facing the error
>> regards
>> moin
>> __________ï
>>
>> View the list's information and change your settings at
>> http://www.freelists.org/list/jawsscripts
>>
>>
>>
>
>
> __________ï
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>
__________ï

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

Other related posts: