Alex, this is quite straightforward. Firstly, from the application for which u desire the keystroke to work, press insert 0 to open script manager. Next, type in the following lines: include "hjconst.jsh" include "hjglobal.jsh" Now, press control e to bring up the new script dialog. Name your script, check the 'can be attached to keystroke' box, write in a synopsis & description, choose a category if desired, assign your keystroke, & activate the ok button. U didn't say which key to assign, so, I'll take insert dash as an example. There are several ways this can be done. The code looks like: const SALEXMSG = "Sock it to me baby, let it all hang out." script SpeakAlexMessage() ; insert dash sayMessage(ot_NO_DISABLE, SALEXMSG) endScript the insert dash is simply a comment telling the key assignment. Press ctrl s & compile. Your key should now work just fine. Another way to do this is to put the constant in a .jsh or .jsm file & include it in the script, as so: include "hjconst.jsh" include "hjglobal.jsh" include "alex.jsh" Then the .jsh file would contain the definition of SALEXMSG as above & the script can use it to speak the message just as I illustrated. Including a message file is a bit different. One usually does this if there are many messages, &/or the messages need to be formatted. It looks like: messages @MSGAlexMSG Sock it to me baby, let it all hang out. @@ EndMessages The file begins w/messages & ends w/endMessages. Each message begins w/an @ sign, followed by the message name. Press enter, type your message, including line feeds, etc., & when done, put 2 @ signs to end it. On 7/4/10, Alex Hall <mehgcap@xxxxxxxxx> wrote: > Hello all, > I was on here several months ago, trying to figure out how to write a > basic script for jaws that would speak a hard-coded message when a key > was pressed instead of speaking the keystroke itself. I am again > trying to solve this problem, but I cannot locate any responses I > received last time around. I am a long-time jaws user, and am > comfortable in Python and Java, but the Jaws scripting language seems > somewhat clunky and not as smooth or straightforward, though that is > from an self-proclaimed scripting newb. > Is there a simple way of doing this? That is, catch a keystroke, and > speak a message in place of speaking the keys pressed. I apologize > that I am asking again, but I now have more time than I had before. I > wish I could locate the emails I had from my last try, but I am not > sure where they would be. > I have read through the scripts to Jamal Mazrui's Edsharp program, but > I could not find where he set things up to speak custom messages. For > example, in that program with the scripts installed, jaws will say > "save" when control-s is pressed, and not "control s" at all. > > -- > Have a great day, > Alex (msg sent from GMail website) > mehgcap@xxxxxxxxx; http://www.facebook.com/mehgcap > __________� > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > -- Change the world--1 deed at a time Jackie McBride Scripting Classes: http://jawsscripting.lonsdalemedia.org homePage: www.abletec.serverheaven.net For technophobes: www.technophoeb.com __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts