home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / archives / msdos / d / 365 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  3.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!crcnis1.unl.edu!unlinfo!vporguen
  2. From: vporguen@unlinfo.unl.edu (victor porguen)
  3. Newsgroups: comp.archives.msdos.d
  4. Subject: Al Berg special: how to inactivate Alt-X
  5. Date: 7 Jan 1993 04:40:13 GMT
  6. Organization: University of Nebraska--Lincoln    
  7. Lines: 65
  8. Distribution: world
  9. Message-ID: <1igc7dINNiif@crcnis1.unl.edu>
  10. NNTP-Posting-Host: unlinfo.unl.edu
  11.  
  12.  
  13. Also sprach der Network Emergency Response Dude, 
  14. alberg@netlan.jpr.com (Al Berg):
  15.  
  16. > I am seeking a program that will allow me to (temporarily) disable 
  17. > certain keystrokes from being passed to an application (ie user 
  18. > presses Alt-X and it goes to the bit bucket before the app gets 
  19. > it).  I envision this being a TSR that I can load and unload as 
  20. > needed.
  21.  
  22. This is mostly easy to do in theory, but there may be a problem in 
  23. practice if the program that is loaded after the TSR hooks Int 09h 
  24. (the keyboard Interrupt) or installs its own keyboard handler, then 
  25. special (sneaky) measures must be taken to bypass such insolence.
  26.  
  27. On the assumption that your program DOES NOT hook Int 09h (most of 
  28. them don't), here's a little TSR called `NO-ALT-X' that will 
  29. intercept the Alt-X keypress and convert it into an audio beep only.
  30. Your application will not see the Alt-X. 
  31.  
  32. Try it and see if it works with your application. If not, it 
  33. probably means your app is grabbing Int 9 and we'll have to design 
  34. something different to take care of that. Let me know. I've tried
  35. it with Procomm, Qedit, Qmodem and Telix - all of which use Alt-X
  36. as the Exit key combination - worked every time.
  37.  
  38. NO-ALT-X is a well-behaved TSR which monitors Int 9 to intercept
  39. the Alt-X keystroke and also monitors Int 2F to check whether it's
  40. already resident (using a silly ID string!); if so, it will not 
  41. install itself twice. You should be able to load it high, etc. under 
  42. DOS 5, although it's only a couple of hundred bytes long anyway.  
  43. Unloading is not implemented yet - that will come in the next 
  44. version.   
  45.  
  46. ( However, if you use the PC Magazine INSTALL/REMOVE utilities by 
  47.  Jeff Prosise, you will be able to install and remove this little 
  48.  TSR from memory easily and without any problem...)
  49.  
  50. -----------------------start program-----------------------------
  51.  
  52. NO-ALT-X.COM   
  53. ------------
  54. Intercepts the Alt-X keystroke and converts it to an audio beep.
  55. Dedicated to the hackers of the world - you may use, copy, store, 
  56. disassemble, mangle, modify and/or distribute this program for any 
  57. legal purpose with no payment to anyone. 
  58.                                    
  59. B8 78 56 BB BC 9A CD 2F 3D BC 9A 75 0C BA BB 01 B4 09 CD 21 B8 01 
  60. 4C CD 21 B8 2F 35 CD 21 89 1E 6C 01 8C 06 6E 01 BA 5D 01 B8 2F 25 
  61. CD 21 33 C0 8E D8 C4 06 24 00 2E A3 A0 01 2E 8C 06 A2 01 FA C7 06 
  62. 24 00 70 01 8C 0E 26 00 FB 8C C8 8E D8 8E C0 BA A4 01 B4 09 CD 21 
  63. BA DB 01 CD 27 3D 78 56 75 09 81 FB BC 9A 75 03 8B C3 CF EA 00 00 
  64. 00 00 50 1E 33 C0 8E D8 F6 06 17 04 08 74 20 E4 60 3C 2D 75 1A B8 
  65. 07 0E CD 10 E4 61 88 C4 0C 80 E6 61 88 E0 E6 61 FA B0 20 E6 20 FB 
  66. 1F 58 CF 1F 58 EA 00 00 00 00 4E 4F 2D 41 4C 54 2D 58 20 69 73 20 
  67. 69 6E 73 74 61 6C 6C 65 64 2E 24 4E 4F 2D 41 4C 54 2D 58 20 69 73 
  68. 20 61 6C 72 65 61 64 79 20 69 6E 73 74 61 6C 6C 65 64 2E 24 00 
  69.  
  70. ;checksum 1592
  71.  
  72. ------------------------end program------------------------------
  73.  
  74. Let me know if it works :-) 
  75.  
  76.  
  77.