Hal:
Writing a script is a form of programming and syntax is very important;
therefore, spaces and punctuation are critical. In the sample script in
this message, you have no () at the end of the first line and there is a
space between SayString and the left paren on line 2. Also on line 2, there
is an apostrophe before the closing quotation mark. Listed below is a
copy of the script and the steps I would use to create this script.
1. When in Note Pad, press insert 0 to load Script Manager.
2. Press control end to move to the bottom of the Note Pad JSS file.
3. Press enter 4 times to give yourself some room to work.
4. Input the script as listed below.
Script SayName ()
SayString("My name is Hal")
endScript
5. Place the cursor on one of the lines of the script and press control S
to compile the script.
6. Again, place the cursor on one of the lines of the script and press
control D to bring up the dialogue box for documentation and assigning a hot
key.
7. Tab to the field where you can assign the hot key and press control
shift
N.
8. Tab to OK and press enter.
9. Again, press control S to compile the script with the hot key assigned.
10. Exit the script manager and test the script. If the script fails to
work, try rebooting the computer to clear the memory.
Good luck,
Lowell
----- Original Message -----
From: Hal Pearson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 22, 1999 1:15 PM
Subject: here's what I did
Hi all,
Okay here is what I did. To be safe, I opened up notepad and then ran the
script manager from there. In effect I ran notepad.jss. I then pressed
control-e to write a new script. Following that I entered
SayName
then tabbed to the attach key to check box and hit the spacebar to check
it. I went to the field where you can write a synopsis and entered
the words
"Say our Name".
Next I tabbed to the description field and typed
"The name of the person who wrote this script".
I then went to the field that allows you to assign a hot key and I chose
control+shift+n and then hit enter and I was placed in the edit field. SO I
had something like this.
Script SayName
EndScript.
Fine and good, so I wrote the body of the script to look like the following.
Script SayName
SayString ("My name is Hal'")
EndScript.
Finally, I pressed control s to compile. still nothing happens even when I
go to notepad to test it out. For the sake of testing, I only want my name
spoken when I press the assigned hot key when I'm in Notepad, but no go.
Hope I've given you all a better idea as to what I did.
Hope this clarifies things a little too.
-
Visit the jfw ml web page: http://jfw.cjb.net
-
Visit the jfw ml web page: http://jfw.cjb.net