My preamble to answering your first question will yield a solution for your second. If declared in your script file, KeyPressedEvent(nKey, strKeyName, nIsBrailleKey, nIsScriptKey) is called whenever a key in your application is pressed. This has no bearing on JAWS key trapping--if there isn't a JKM entry present for the key currently being evaluated, it is passed to the application. A summary of your approach might be: * an INI key in event=key1<delim>key2<delim>... format. * Use KeyPressedEvent to check the current key against your list of event keys. if stringSegmentIndex(key_list, delim, true) then ;... do something else ;... do something else endIf A foot note: You could use Doug Lee's XList module (available in a number of places and with a number of distributions) for a proper array feel. See the KeyPressedEvent() documentation in default.jsd or the FSDN and optionally an example usage (in default.jss) for more information. HTH Jim "Alex Hall" <mehgcap@xxxxxxxxx> wrote on Sat, 31 Oct 2009 12:52:34 -0400: >Hi all, >This is mainly for Jamal. In your scripts for EdSharp, you somehow got Jaws >to speak a custom message for certain keystrokes, yet the keystroke is not >blocked by jaws capturing it. I have a program for which I would like to >write some scripts and have the following questions: >1. Is there a way to read from an ini file where keystrokes are defined? The >keystrokes are customizable, so I want to speak the proper message for an >event no matter what keystroke calls that event. >2. How do you get jaws to speak a message but still pass the keystroke to >the application? Edsharp, for example, will make jaws speak "compile", but >but the f5 key is still passed to Edsharp even though jaws caught it first. >Thanks! > > >Have a great day, >Alex >New email address: mehgcap@xxxxxxxxx > >__________ >View the list's information and change your settings at >//www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind