home *** CD-ROM | disk | FTP | other *** search
/ BUG 1 / BUGCD1996_0708.ISO / pc / comm / doorway / xtable.doc < prev    next >
Text File  |  1995-05-18  |  4KB  |  66 lines

  1.                            XTABLE.EXE INSTRUCTIONS
  2.  
  3. DOORWAY can redefine keyboard entries made at the remote end, including
  4. hotkeys.  Thus if you have a program which requires a F10 to be pressed to
  5. exit, you can now redefine some other key, such as "Q" or ^Q, to be an F10.
  6. There are no restrictions on redefinitions (except you cannot redefine the
  7. RETURN key).  Once the F10 is redefined as a "Q" then the user can enter a "Q"
  8. to exit the program, and the program will receive an F10.
  9.  
  10. To use the table generator enter XTABLE at the dos prompt.  If you already have
  11. a table, it will print the translations already in the table.  It will then ask
  12. if you want to modify the present table or erase it and start a new one.  The
  13. last definition entered for a key will be the one kept, so if you make a
  14. mistake simply enter it again.  On each line enter the character you want
  15. translated followed by the character you want it translated to.  In the above
  16. example you would enter "Q" followed by "F10".
  17.  
  18. Xtable will then ask you if you want to implement any not keys.  A hot key
  19. is where a memory resident program will "pop up" when a certain combination
  20. of keys are pressed.  Programs such as SETUP (for the printer) and Sidekick
  21. are hot key initiated.  Hot keys differ from normal translations by several
  22. things.  First, some hot keys do not use any character keys at all, but look
  23. for a combination of the control, alt, and shift keys.  Others which look for
  24. things like an ALT 1, require a hardware keyboard interrupt.  If you implement
  25. a HOT KEY, the it can fake these things.  Note that virtually all hot key
  26. programs do direct screen writes.  If they are not turned on, then the
  27. window will not pop up.
  28.  
  29. When entering hot keys, enter the character to translat from.  Then RELEASE
  30. all keys, and enter the combo you want translated to.  It will be captured
  31. when you release the keys for non-character combos.
  32.  
  33. The number in paranthesis shows the HEX value passed.  For normal characters
  34. the lower two bytes are the ASCII, and the first 2 bytes are the scan code.
  35. For extended codes, the last two bytes are 0 and the first two are again the
  36. scan code.  The table starts out with a default, such that a character from
  37. the remote will generate the "most likely" scan code.  For instance the "+"
  38. will generate the scan code for the SHIFT "=" plus sign.  If you want the
  39. program to see what appears to be the GREY KEY "+" then simply enter a plus
  40. sign followed by the GREY KEY "+".  Using the default DOORWAY.XLT is the same
  41. as using no translation table at all (DOORWAY will still put the "expected"
  42. scan codes in).
  43.  
  44. To use the translation table simply put a /X: on the doorway command line
  45. (before the /P: if there is one).  DOORWAY will then load DOORWAY.XLT from
  46. the current directory.  If you want it to load a different table or from a
  47. different directory then follow the /X: with the path\filename of the table.
  48. You can rename the DOORWAY.XLT file, but it will have to be named DOORWAY.XLT
  49. if you want to make modifications to it.
  50.  
  51. INTERNALS
  52.  
  53. The table consists of two tables of 256 words each.  Each word contains the
  54. character code and scan code for each possible ASCII character.  The first
  55. table is the lookup table for standard ASCII characters, and the second is for
  56. extended codes.  For instance, if a ^C (ASCII 3) comes in the modem, the entry
  57. at location 6 will be used to determine the translation.  Location 6 will be
  58. passed to the program in the AL register (as the character) and location 7 will
  59. be passed to the program as the scan code.  If an extended key was entered with
  60. a scan code of 3 then the second table would be used, starting with offset 512
  61. of the file.
  62.  
  63. If it is a HOY key, then the scan code byte will have a $F#, where the #
  64. defines which keys are depressed.  The caracter byte will contain either the
  65. character, if one was entered, or the scan code if it was not.
  66.