2TFC030.MOD1 Allow ALT-0 thru ALT-9 for WWIV macros! The Flying Chicken [SysOp] #1 @12456 3Friday, March 19, 1993 1 6:02 pm TFC030.MOD - Allow ALT-0 thru ALT-9 Macros Author : The Flying Chicken Source : WWIV 4.20-4.22 Version: 1.0 I always wanted to be able to set up N*.NET files up under alt-# keys, but Wayne does not allow ALT-0 thru ALT-9 for macros. This mod changes that, giving you 10 more macros to play with. Now, I have subtype ALT-1 set up to edit N12456.NET, ALT-2 for N22456.NET, etc... a great way to add folks from your read-mail prompts. v1.0 - Initial version written This is a fairly simple mod, so let's get right into it. 1. Load up CONIO.C. Search for 'char xlate[' and replace your code with the block below, or make the changes indicated. char xlate[] = { 'Q','W','E','R','T','Y','U','I','O','P',0,0,0,0, 'A','S','D','F','G','H','J','K','L',0,0,0,0,0, 'Z','X','C','V','B','N','M','1','2','3','4','5', /* CHANGE */ '6','7','8','9','0', /* ADD */ }; 2. Search for the scan_to_char() function, and replace it with the one below. char scan_to_char(unsigned char ch) /* REPLACE FCN */ { if ((ch>=16) && (ch<=50)) return(xlate[ch-16]); else { if ((ch>=120) && (ch<=129)) return(xlate[ch-85]); else return(0); } } Before using this or any mod, back up your source !!!!! PKZIP source *.c *.h *.mak If you mess something up later and want to unstall the mod, just type: PKUNZIP source -o DISCLAIMER: I make no guarantees with this mod whatsoever. Your installation of the mod is your acceptance of any damages caused to your hardware or software, incendental or otherwise. PLEASE REPORT ANY BUGS!