THE LJ4 UTILITY ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Version 1.3 Copyright (c) 1993, 1994 by TASsoft, All Rights Reserved Written by Tim Tschirner and Christoph Sundergeld Thank you for downloading and trying The LJ4 Utility! Feel free to pass a copy to all your friends and upload it to a BBS near you. ÄÄÄÄÄÄÄÄÄÄ Contents ÄÄÄÄÄÄÄÄÄÄ This archive should contain these files: LJ4.EXE - The LJ4 Utility (International Version) LJ4.DOC - English LJ4 Utility documentation LJ4.REG - International registration form for The LJ4 Utility LJ4.REV - English LJ4 Utility Revision History LJ4_D.EXE - The LJ4 Utility (German Version) LJ4_D.DOC - German LJ4 Utility documentation LJ4_D.REG - German registration form for The LJ4 Utility LJ4_D.REV - German LJ4 Utility Revision History This documentation contains a description of The LJ4 Utility, a complete reference of all valid commands and values, tips on use of LJ4 in Batch files, notes on the registration process and a legal disclaimer. Please make sure you read the disclaimer! ÄÄÄÄÄÄÄÄÄÄÄÄÄ Description ÄÄÄÄÄÄÄÄÄÄÄÄÄ The LJ4 Utility allows you to quickly change the settings of your LaserJet 4 family printer. Now you can change for example your printer's papersize, the default typeface or EconoMode setting just by typing LJ4 and the corresponding command at the DOS prompt. This minimizes the time needed for changing your printer's settings because you don't have to start the Hewlett-Packard remote control panel or walk to your printer to do so. All you need to use The LJ4 Utility is a PC and a Hewlett-Packard LaserJet 4 family printer connected to it. There are no further hardware and software requirements. ÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Installation ÄÄÄÄÄÄÄÄÄÄÄÄÄÄ There is no installation procedure as such, just copy LJ4.EXE and the appropriate documentation into any directory on your hard disk that is in the DOS search path. You way want to copy it to your EXPLORER or DOS directory. ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Using The LJ4 Utility ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Using LJ4 is quite easy. If you want to change a setting, just pass the command and the value to change on to LJ4. The complete syntax is as follows: LJ4 Command Value [Port] Command is a valid command, which must have at least three letters. Value is a legal value for the specified command. Port specifies the port your printer is connected to. Valid options are LPT1, LPT2 or LPT3 with LPT1 being the default. This parameter is optional and you don't have to use it if your printer is connected to LPT1. To get an overview on all valid commands and values enter LJ4 -? at the DOS command prompt. Here's a complete list of all valid commands with their legal values. Please note that the letters in brackets are optional and you don't have to enter them. Also, you don't have to enter the commands and values in capitals. ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Complete Command and Value Reference ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ RESE[T] This command resets all the printer settings to the factory defaults. There is no value for this command. EJE[CT] This command empties the printer buffer. If there is some data in the buffer, it will be printed and the page will be ejected. If the buffer is empty, nothing will happen. This is very useful if you send something to the printer and it is not printed right away. There is no value for this command. SYM[SET] This command changes the Symbol Set. Currently the following values are supported: ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ DESKTOP: DeskTop ³ PC8DN: PC-8 Danish/Norwegian ISO4: ISO 4 English (UK) ³ PC850: PC-850 Multilingual ISO6: ISO 6 ASCII ³ PC852: PC-852 Latin 2 ISO11: ISO 11 Swedish for Names ³ PC8TK: PC-Turkish ISO15: ISO 15 Italian ³ PIFONT: Pi Font ISO17: ISO 17 Spanish ³ PSMATH: PS Math ISO21: ISO 21 German ³ PSTEXT: PS Text ISO60: ISO 60 Norwegian V1 ³ ROMAN8: Roman-8 ISO69: ISO 69 French ³ VNINTL: Ventura International ISOL1: ISO 8859/1 Latin 1 ³ VNMATH: Ventura Math ISOL2: ISO 8859/2 Latin 2 ³ VNUS: Ventura US ISOL5: ISO 8859/5 Latin 5 ³ WIN30: Windows 3.0 Latin 1 LEGAL: Legal ³ WINL1: Windows 3.1 Latin 1 MATH8: Math-8 ³ WINL2: Windows 3.1 Latin 2 MSPUBL: Microsoft Publishing ³ WINL5: Windows 3.1 Latin 5 PC8: PC-8 (Code Page 437) ³ FON[TNUMBER] This command changes the Typeface. Currently legal values range from 0 to 70. This is the relation table for the LaserJet 4L: Fontnumber ³ Typeface ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 0, 1, 2, 3 ³ Courier, Bd, It, Bd It 4, 5, 6 ³ Letter Gothic, Bd, It 7, 8, 9, 10 ³ CG Times, Bd, It, Bd It 11 ³ Coronet 12, 13, 14, 15 ³ Univers Md, Bd, Md It, Bd It 16, 17, 18, 19 ³ Univers Md Cd, Bd Cd, Md Cd It, Bd Cd It 20, 21, 22 ³ Antique Olive, Bd, It 23, 24 ³ Albertus Md, XBd 25 ³ Wingdings This is the relation table for the LaserJets 4 and 4M: Fontnumber ³ Typeface ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 0 ³ Courier 1, 2, 3, 4 ³ CG Times, Bd, It, Bd It 5, 6, 7, 8 ³ CG Omega, Bd, It, Bd It 9 ³ Coronet 10 ³ Clarendon Cd 11, 12, 13, 14 ³ Univers Md, Bd, Md It, Bd It 15, 16, 17, 18 ³ Univers Md Cd, Bd Cd, Md Cd It, Bd Cd It 19, 20, 21 ³ Antique Olive, Bd, It 22, 23, 24, 25 ³ Garamond Antiqua, Bd, It, Bd It 26 ³ Marigold 27, 28 ³ Albertus Md, XBd 29, 30, 31, 32 ³ Arial, Bd, It, Bd It 33, 34, 35, 36 ³ Times New, Bd, It, Bd It 37 ³ Symbol 38 ³ Wingdings 39, 40, 41 ³ Courier Bold, It, Bd It 42, 43, 44 ³ Letter Gothic, Bd, It 45 ³ Line Printer (10U) 46 ³ Line Printer (8U) 47 ³ Line Printer (0N) 48 ³ Line Printer (11U) 49 ³ Line Printer (12U) 50 ³ Line Printer (1U) This is the relation table for the LaserJet 4P: Fontnumber ³ Typeface ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 0 ³ Courier 1 ³ Symbol 2 ³ Wingdings 3, 4, 5, 6 ³ CG Univers, Bd, It, Bd It 7, 8, 9, 10 ³ CG Omega Bd, It, Bd It 11 ³ Coronet It 12 ³ Clarendon Cd Bd 13, 14, 15, 16 ³ Univers, Bd, It, Bd It 17, 18, 19, 20 ³ Univers Cd, Bd Cd, Cd It, Bd Cd It 21, 22, 23 ³ Antique Olive Bd, It 24, 25, 26, 27 ³ Garamond, Bd, It, Bd It 28 ³ Marigold 29, 30 ³ Albertus, XBd 31, 32, 33, 34 ³ Arial, Bd, It, Bd It 35, 36, 37, 38 ³ Times New, Bd, It, Bd It 39, 40, 41 ³ Courier Bd, It, Bd It 42, 43, 44 ³ Letter Gothic, Bd, It 45 ³ Line Printer (ISO 8859/2 Latin 2) 46 ³ Line Printer (ISO 8859/9 Latin 5) 47 ³ Line Printer (Roman-8) 48 ³ Line Printer (ISO 8859/1 Latin 1) 49 ³ Line Printer (PC-8) 50 ³ Line Printer (PC-8 Danish/Norwegian) 51 ³ Line Printer (PC-850 Multilingual) 52 ³ Line Printer (Legal) If your printer is not listed, you can get the relation table by consulting a self-test page for assistance. You get the font numbers by numbering all available fonts, starting with zero. (Note: Since we don't have self-test pages from all supported printers, we would greatly appreciate any additional relation tables.) PIT[CH] This command changes the pitch size of non-proportional fonts like Courier and Letter Gothic. Legal values range from 0.44 to 99.99 and may depend on the selected font. PTS[IZE] This command changes the point size of proportional fonts like CG Times, Coronet and Univers. Legal values range from 0.10 to 999.75 and may depend on the selected font. FOR[MLINES] This command changes the number of lines per page. Legal values are from 5 to 128. PAP[ER] This command changes the paper size. Currently supported values are LETTER, LEGAL, EXECUTIVE, COM10, B5, A4, C5, DL and MONARCH. ORI[ENTATION] This command changes the printing orientation. Legal values are PORTRAIT and LANDSCAPE. COP[IES] This command sets the number of copies. Legal values range from 1 to 999. MAN[UALFEED] This command lets you switch the manual feed on and off. Legal values are, of course, ON and OFF. AUT[OCONT] This command turns the Auto Continue feature on and off. As above, the legal values are ON and OFF. RET This command changes the Resolution Enhancement Technology (REt) setting. Legal values are OFF, LIGHT, MEDIUM and DARK, PAG[EPROTECT] This command changes the Page Protect setting. Legal values are ON, OFF and AUTO. IMA[GEADAPT] This command lets you change the Image Adapt setting. Legal values are ON, OFF and AUTO. LAN[GUAGE] This command lets you switch the Printer Language. Legal values are PCL, PJL, POSTSCRIPT and HPGL. FUN[CTION] This command changes the Function Mode setting. When the function mode is turned on, all commands that are sent to the printer will not be executed. When you turn it off again, the commands that have been sent before will be shown exactly as the printer receives it. Legal values for this command are ON and OFF. MES[SAGE] This command displays a Message on the printer display. The message can be up to 16 characters long, and blanks are not supported yet. DEN[SITY] (not supported by 4Si & 4 SiMX) This command changes the density. Legal values range from 1 to 5. RES[OLUTION] (not supported by 4L & 4ML) This command changes the resolution. The legal values are 300 and 600. ECO[NOMODE] (only supported by 4L, 4ML, 4P & 4MP) This command lets you turn the EconoMode on and off. Legal values are, guess what, ON and OFF. JOB[OFFSET] (only supported by 4Si & 4SiMX) This command turns the Job Offset on or off. Legal values are, once again, ON and OFF. OUT[BIN] (only supported by 4Si & 4SiMX) This command lets you choose the output bin. Legal values are UPPER and LOWER. DUP[LEX] (only supported by 4Si & 4SiMX) This command lets you turn the Duplex Printing on or off. Legal values are, what else, ON and OFF. ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Use In Batch Files ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ You can easily create your own personal configuration file for your LaserJet 4 printer by using a batch file. If you're not familiar with batch files, consult your DOS manual for more information. Use an ASCII Editor like EDIT.COM from MS-DOS to create a new file and name it MYCONFIG.BAT. Then simply write the necessary commands in it. That's it! If you for example have a LaserJet 4L connected to LPT2 and would like to have the PC-8 (Code Page 437) as the Symbol Set with 70 Lines per page and the EconoMode turned On by default, the batch file would look like this: @ECHO OFF LJ4 SYM PC8 LPT2 LJ4 FOR 70 LPT2 LJ4 ECO ON LPT2 If you would like to have your default configuration restored, simply enter MYCONFIG at the DOS prompt. But it's not limited to this. With the help of the Errorlevel command you can check if an error occurred while sending the command to the printer or if anything was sent okay. The LJ4 Utility provides the following Errorlevels: Errorlevel ³ State ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 0 ³ Command was successfully sent to the printer 1 ³ Error: Printer is out of paper 2 ³ Error: Printer is offline 3 ³ Error: Printer is busy 4 ³ Error: A critical or unknown error occurred Imagine you would like to use the above batch file but want to stop immediately if an error occurred while sending the command to the printer. Then the file would look like this: @ECHO OFF LJ4 SYM PC8 LPT2 IF ERRORLEVEL 4 GOTO ERROR IF ERRORLEVEL 3 GOTO ERROR IF ERRORLEVEL 2 GOTO ERROR IF ERRORLEVEL 1 GOTO ERROR LJ4 FOR 70 LPT2 IF ERRORLEVEL 4 GOTO ERROR IF ERRORLEVEL 3 GOTO ERROR IF ERRORLEVEL 2 GOTO ERROR IF ERRORLEVEL 1 GOTO ERROR LJ4 ECO ON LPT2 IF ERRORLEVEL 4 GOTO ERROR IF ERRORLEVEL 3 GOTO ERROR IF ERRORLEVEL 2 GOTO ERROR IF ERRORLEVEL 1 GOTO ERROR ECHO. ECHO Configuration successfully sent to the printer! GOTO END :ERROR ECHO. ECHO An error occurred while sending the configuration to the printer! :END If you should not be familiar with the Errorlevel command, please consult your DOS manual for more assistance. ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Notes On The Registration Process ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ The LJ4 Utility is released as Shareware. This means that you may use it for two weeks, but after that period you must either register or delete it. When you register, you will receive your Personal Registration Code (PRC) which allows you to turn your Shareware version into a registered version of The LJ4 Utility that does not contain the randomly appearing registration reminder. Once you are a registered customer, you will NEVER see this registration reminder again! Because with your PRC you can unlock not only this version but ALL future versions of The LJ4 Utility. The registration fee is US$ 10 if you send cash or US$ 13 if you prefer sending a check (this is to cover the cashing fee). Please make sure that if you send a check you make it payable to either Tim Tschirner or Christoph Sundergeld but NOT to TASsoft. To register, print out the file LJ4.REG, fill it out, put it together with the US$ 10 or the check into an envelope and send it back to us at this address: TASsoft Friedrich-Ebert-Str. 13 33602 Bielefeld Germany As soon as your order reaches us, we will mail you your PRC (Personal Registration Code). If you have an E-mail address, we can also send it to you via E-mail. Caution: Don't use an Execompressor like PKLite on The LJ4 Utility, because you won't be able to turn the Shareware Version into the registered version afterwards. Even if you don't want to register your copy of LJ4, we would really like to hear your comments on The LJ4 Utility! If you find a bug or have any comments, questions or problems, you can contact us at the following Internet E-mail addresses: 1) Tim Tschirner ittschir@techfak.uni-bielefeld.de 2) Christoph Sundergeld icsunder@techfak.uni-bielefeld.de ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Legal Disclaimer ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ This package (consisting of The LJ4 Utility and associated documentation) is Copyright (c) 1993, 1994 by TASsoft. The software and the documentation were written by Tim Tschirner and Christoph Sundergeld (further referred to as 'The Authors'). All rights reserved. It is provided 'as is' without representation or warranty of any kind, either express or implied, including without limitation, any representations or endorsements regarding the use of, the results of, or performance of; its appropriateness, accuracy, reliability, or currentness. The entire risk as to the use of this package is assumed by the user. In no event will the authors or TASsoft be liable for any damages, direct, indirect, incidental or consequential, resulting from any defect in the package, even if the authors or TASsoft have been advised of the possibility of such damages. Any and all use of this package, for any purpose, with no regard to the legality of such use or purpose, is the complete and sole responsibility of the user. All terms are subject to change without notice. This disclaimer shall supersede any verbal or written statement to the contrary. Should any part or parts of this disclaimer be deemed unlawful or unapplicable, the remainder shall continue to apply. If you do not accept these terms, you must cease using this package immediately. LaserJet and Hewlett-Packard are registered trademarks of the Hewlett-Packard Company. MS-DOS is a registered trademark of Microsoft Corporation. Univers is a registered trademark of the Linotype AG. PKLite is a registered trademark of PKWare. All other mentioned programs and brand names are trademarks and/or registered trademarks of their respective owners and are hereby acknowledged.