home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / basic / library / asic / ascsu215 / extended.doc < prev    next >
Text File  |  1991-11-17  |  3KB  |  61 lines

  1.                                  Matt Roberts
  2.                                3 Cedar St., # 8
  3.                            Montpelier, Vt 05602-3006
  4.                                  (802)223-2553
  5.  
  6.                                    11-17-91
  7.  
  8.                              NOTES ON EXTENDED.COM
  9.  
  10. ──────────────────────────────────────────────────────────────────────────────
  11.  
  12. This little "utility" is one I wrote myself, in order to help me take 
  13. advantage of extended keys in my ASIC programs.  It's pretty simple; it just 
  14. keeps printing the character for the key(s) you press until you press Esc.  At 
  15. that point, the program ends.
  16.  
  17. The reason I use this is that it's hard to remember what characters are 
  18. returned to ASIC when extended keys are pressed.  For instance, I've got the 
  19. fact that pressing the F1 key returns the character ";" pretty well memorized, 
  20. but the rest are a little hazy in my mind.  Actually, it's my mind that's 
  21. hazy, but that's beside the point (and a personal problem as well).
  22.  
  23. Anyway, knowing which characters are returned allows you to write routines 
  24. like this:
  25.  
  26.  
  27. wait:
  28. a$=inkey$
  29. if a$="" then wait:
  30. if extended=1 then readext:
  31. goto wait:
  32.  
  33. readext:
  34. if a$=";" then f1key:
  35. if a$="<" then f2key:
  36. if a$="=" then f3key:
  37. .
  38. .
  39. .
  40.  
  41. and so on.
  42.  
  43. EXTENDED.COM also responds to combinations with the Alt and Ctrl keys as well.  
  44. This allows you to use the extended keys in your programs, giving your work a 
  45. more polished appearance.  Information on using the system variable EXTENDED 
  46. in your programs is in TIPS.DOC, on this disk.  Source examples of using the 
  47. EXTENDED variable can be found in GETKEY.ASI and FILE-MAN.ASI.
  48.  
  49. The programs on this disk were compiled using ASIC by David Visti.  He can be 
  50. reached at P.O. Box 2952, Raleigh, NC 27602-2952.  ASIC is a shareware BASIC 
  51. compiler which generates .COM files.  I've played around with a lot of BASIC 
  52. programs, both interpreters and compilers, and this one seems to be the most 
  53. powerful for those of us who don't use machine language.  If you can access 
  54. machine language from BASIC, there's no telling what you can do.  There's no 
  55. telling because I don't understand a byte of machine code, so I have no idea.
  56.  
  57. Your comments, questions, and criticisms are important to me.  If you have 
  58. anything at all to say about my programs, be it nice or nasty, please write me 
  59. at the address at the top of this document.  I want to write the highest 
  60. quality programs I can, and your comments, etc. will help me do that.  Thanks.
  61.