S.U.P.E.R. Archivo HP 200LX
← Volver al catálogo

GETKEY

Versión 1.11 · Chad Knudson

Descargar 11.4 KB

Descripción

GetKey is a command to use in Batch files to allow polling for any keypress of the keyboard. It was written for developing a menu system in DOS Batch (.BAT) files. Freeware.

Ficha técnica

Fichero
getkey11.zip
Tamaño
11.4 KB
Formato
.zip
Año
1993
Alta en S.U.P.E.R.
1996-11-20
Ficheros dentro
9
Autor
Chad Knudson
Ruta
anonftp/pub/getkey11.zip

Cómo instalarlo

Qué enviar al palmtop ahorras 6.8 KB

Estos son los ficheros que necesitas. Puedes enviarlos desde el contenido del paquete.

  • RUNME.BAT → A:\SOFT programa de DOS 1.6 KB
  • TESTKEYS.BAT → A:\SOFT programa de DOS 425 B
  • GETKEY.EXE → A:\SOFT programa de DOS 9.2 KB
  • PURGMENU.COM → A:\SOFT programa de DOS 913 B
  • PURGE.BAT → A:\SOFT programa de DOS 834 B

No hace falta llevar al palmtop F1CONT.ASC, MENU.ASC, GETKEY.DOC, FILE_ID.DIZ: son manuales, código fuente o material de apoyo. Léelos aquí y ahórrate 6.8 KB en un disco de 1 MB.

Pasos
  1. Copia RUNME.BAT, TESTKEYS.BAT, GETKEY.EXE, PURGMENU.COM a A:\SOFT. Son programas de DOS: se ejecutan desde el icono DOS, o añadiendo A:\SOFT al PATH de C:\AUTOEXEC.BAT para poder llamarlos por su nombre.

Deducido del contenido del paquete y de las convenciones del 200LX. Se instala en A: a propósito: C: es un disco RAM y cada byte ahí resta memoria al sistema.

Instrucciones del autor alemán
Setup
    Operation of GetKey is quite simple. You will want to place the
    GETKEY.EXE file either in the directory that your .BAT file resides
    or in a directory in your DOS PATH statement. That's all that you
    need to do for setting up GetKey.

    Operation
    GetKey is designed for use in .BAT files.  When you call GetKey in a
    .BAT file, it will wait until the next keypress occurs and then will
    store a textual representation of that key in the DOS environment
    variable KEY.  Here are some samples of what GetKey places in KEY:

    KEY=        │ Keystroke
    F10         │ Function key F10 pressed
    A           │ Capital A pressed
    CTRL-HOME   │ CTRL and HOME keys pressed simultaneously
    ALT-X       │ ALT and X keys pressed simultaneously
    ESC         │ Escape key pressed
    ALT-F12     │ ALT and Function Key F12 pressed simultaneously
    ???         │ 5 pressed on numeric keypad when NumLock off

    As you can see, it allows for nearly any keystroke combination to be
    polled.  If GetKey doesn't recognize the keypress, it places three
    question marks in KEY.  The majority of keypresses are available to
    you to use, but there are a few that I excluded.  To make sure that
    the keypress you wish to use is valid, try it manually.  Type
    GETKEY, press the keypress in question, and type SET at the DOS
    prompt to see your current environment setting.  (A sample of how to
    do this is included in the file TESTKEY.BAT which will probably
    suffice for any testing you need to do.)

    Using GetKey in a .BAT file
    Below is a sample batch file (also included in this .ZIP is a file
    RUNME.BAT, which is a more in-depth demonstration) which
    demonstrates how you can utilize GetKey in your own batch file.

…

Extracto literal de GETKEY.DOC, tal cual venía en el paquete.

Enviar a mi palmtop

El palmtop tiene que quedar esperando antes de pulsar el botón, o la transferencia fallará. Es él quien avisa de que está listo, no al revés.

¿Primera vez? Cómo conectar el palmtop, paso a paso →