home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / WIN_UTL2 / XRAY11.ZIP / XRAY.H < prev    next >
Text File  |  1994-01-04  |  3KB  |  68 lines

  1. /**********************************************************************
  2.  XRAYfield reads a string off of the DOS window
  3.     targ is the memory area where the string will be copied,
  4.       it must be at least one byte larger then l.
  5.     w is the XRAYWIN.COM DOS window number.
  6.     r is the screen row starting at 0 (first row is 0, last row is 25).
  7.     c is the column starting at 0 (0 to 79).
  8.     l is the length of the field. Field lengths can wrap. For instance,
  9.       to get the whole screen start from r=0,c=0 and make l = 2000
  10.       (i.e. 25*80).
  11.     XRAYfield returns non-zero on system failure. It will return a
  12.       sring of the letter 'G' if XRAYWIN is not installed correctly.
  13. **********************************************************************/
  14. int far pascal XRAYfield(char far *targ,int w,int r,int c,int l);
  15.  
  16. /**********************************************************************
  17.   XRAYGetCursor returns the cursor location.
  18.     NOTE: This is ONLY available in the registered versions of XRAY
  19.     w is the XRAYWIN.COM DOS window number.
  20.     XRAYGetCursor returns the cursor location as an unsigned int.
  21.     column is the high order byte, row the low order.
  22.     column = location >> 8;
  23.     row = location & 255;
  24. **********************************************************************/
  25. unsigned far pascal XRAYGetCursor(int w);
  26.  
  27. /**********************************************************************
  28.   XRAYGetCursor returns the cursor location.
  29.     NOTE: This is ONLY available in the registered versions of XRAY
  30.     key is the keystroke to stuff. key has the scan code in the high
  31.       byte and the ascii value in the low byte. Most programs will
  32.       accept just the ascii value without a problem. Function keys,
  33.       alt keys and cursor controls usually have a 0 in the low order
  34.       byte and the scan code in the high order byte. The keys require
  35.       using the defines below. Use DKEY.COM (available on my BBS)
  36.       to find the shift and ascii values for other keys.
  37.     w is the XRAYWIN.COM DOS window number.
  38.     returns non zero if failure.
  39. **********************************************************************/
  40. int far pascal XRAYStuffKeyboard(unsigned key,int w);
  41.  
  42. /**********************************************************************
  43.    Keystrokes for XRAYStuffKeyboard
  44. **********************************************************************/
  45. #define XF1      0x3b00
  46. #define XF2      0x3c00
  47. #define XF3      0x3d00
  48. #define XF4      0x3e00
  49. #define XF5      0x3f00
  50. #define XF6      0x4000
  51. #define XF7      0x4100
  52. #define XF8      0x4200
  53. #define XF9      0x4300
  54. #define XF10     0x4400
  55. #define XHOME    0x4700
  56. #define XUP      0x4800
  57. #define XPGUP    0x4900
  58. #define XLEFT    0x4B00
  59. #define XRIGHT   0x4D00
  60. #define XEND     0x4F00
  61. #define XDOWN    0x5000
  62. #define XPGDN    0x5100
  63. #define XINS     0x5200
  64. #define XDEL     0x5300
  65. #define XESC     0x011b
  66. #define XRETURN  0x1c0d
  67. #define XENTER   0x1c0d
  68.