Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!hplabs!ucbvax!LBL.ARPA!nagy%warner.hepnet From: nagy%warner.hepnet@LBL.ARPA Newsgroups: comp.os.vms Subject: RE: Define/Key and programs Message-ID: <870618142944.02s@lbl.arpa> Date: Thu, 18-Jun-87 17:29:35 EDT Article-I.D.: lbl.870618142944.02s Posted: Thu Jun 18 17:29:35 1987 Date-Received: Mon, 22-Jun-87 02:00:40 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 22 > I want to define keypad keys for use with various command-driven programs. >When I try DEF/KEY, the definitions seem to disappear when the program is run. >Am I doing something wrong, or am I s.o.l? >/kenw Define/Key just associates a DCL command with a key. These definitions are only active when you are at the DCL level (and not inside a program). They wouldn't do the program any good anyway unless the program was up to interpreting DCL commands... However, there is a way for your program to use keypad keys in a way similar to Define/Key. Look at the SMG (Screen Management routines) documentation in Volume 8B (Run-Time Library) of the VMS Documentation set. The SMG input routines allow you to define a keypad or function key as equivalent to a set of characters that your program interprets. After all, that's how the debugger works (it uses SMG). = Frank J. Nagy = Fermilab Research Division EED/Controls = HEPNET: WARNER::NAGY (43198::NAGY) or FNAL::NAGY (43009::NAGY) = BitNet: NAGY@FNAL = USnail: Fermilab POB 500 MS/220 Batavia, IL 60510