Brought to you by the Dewman ANSI KEYBOARD CODES & KEY REDEFINITION PROGRAM DOCUMENTS ========================================================== * The two debug programs SNIFF.COM and KEY.COM must be in your path or accessable by ANSIKEYS to function. The files SNIFF.SCR and KEY.SCR are the DEBUG script files. The file KEY.COM reads and defines the keys' code. The other file SNIFF.COM returns an errorlevel to Dos to determine if you answered yes or no. Errorlevel 89 indicates you pressed Y and errorlevel 90 indicates you pressed N.This can be a handy utility in any batch file that you wish to be asked to proceed or not. An example is batch file to backup hard drive c: to floppies ECHO Do you wich to backup drive c: to drive a: (Y/N) SNIFF IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 BACKUP C:\ A: * ANSI.SYS has got to be installed to make use this program * It would be a good idea to increase the Dos environment by editing the CONFIG.SYS file to help prevent system crashes caused by running out of environment space. Change line to SHELL=[D:]\DIRECTORY\COMMAND.COM /P /E:512 * To view a keys' ASCII code type ANSIKEYS NO at the prompt. This will allow you to find the keys' ASCII value without prompting you to change or reset the keys' codes or their commands. * If you want to redefine a key you must enter the new code or a Dos command if so desired. Examples of the syntax are ANSIKEYS 077, ANSIKEYS 0;68, ANSIKEYS "dir/w". The last example must have the quotations around the dir/w command. When using Dos commands to redefine a key NEVER put spaces in the command such as ANSIKEYS "dir c:\dos" because it'll have adverse effects on the prompt and the key won't work properly. If this happens reset the key to normal setting. * Typing ANSIKEYS at the prompt will bring a help type screen that will prompt you to change a keys' setting. Type Y to quit and enter the new parameter after ANSIKEYS at tthe Dos prompt. The other option is to type N which will allow you to view the ASCII codes or reset any keys that have been redefined previously. SAMPLES OF KEYBOARD REDEFINTIONS ================================= * It's best to redefine function keys for Dos commands * Make a key to change to a to a commonly used directories ANSIKEYS "cd\directory\directory" * Make a key to check file attributes ANSIKEYS "attrib" * Make a key to view a directory by filename ANSIKEYS "dir/on" * If you have a key such as the A key that doesn't work redefine one to act as the A key ANSIKEYS "A"