home *** CD-ROM | disk | FTP | other *** search
-
- SEND_FE SEND front end utility
-
-
- This program works in conjunction with Novell SEND v1.11 and USERLIST
- v2.10 for use in Saber (and other) menu shells.
-
- It should work with any version of SEND v1.11 or greater, but (since
- it depends upon the text output formatting of USERLIST) may have to be
- edited for different versions. Better yet, get the DOS or C calls and
- poll NetWare directly.
-
- (C)opyright 08/08/90 by Bob Welker. Written in QB v4.5 with code from
- Crescent Software QuickPak Professional library v3.14
-
- Disclaimer : Caveat emptor! No guarantees! You are on your own!
- Released into the user community ... if you use code from this
- please give mention to the few hours I spent writing it.
-
- Acknowledgements : Crescent Software, and their excellent QuickPak v3.14
- Professional libraries. Microsoft, and their equally notable QuickBASIC v4.15
- program.
-
- Saber Menu environment strings used in this program :
-
- S_SERVER=SERVERNAME current server
- S_USER=SUPERVISOR current user
- S_FILEDIR=F:\TRASH\ this is where temporary files will be
- written. F:\TRASH is a directory with all
- but parental rights for the creation of
- transient files.
-
-
- This program is a front end to the Novell Advanced Netware v2.15 SEND
- command. It expects Saber MENU v4.00+ compatable S_FILEDIR, S_SERVER,
- and S_USER environment variables to be available in the DOS
- environment, but may work without them (if the user has sufficient
- rights in the default directory).
-
- The 'default server' field is filled from S_SERVER, and temporary
- files are created in S_FILEDIR. You can edit, and have the opportunity
- to re-edit the server name. Once accepted, you are prompted to enter a
- message (which you can re-edit before sending).
-
- Finally, USERLIST is run to list the network users currently online,
- and allow you to send the message to whomever you select. The default
- group name EVERYONE is also included for global message broadcasts.
-
- Legal text input box commands are {home}, {left}, {right}, {up},
- {end}, {del}, {backspace}, {tab}, and {AltC} (which erases all
- text). As an added bonus, both a simple calculator and calendar are
- provided.
-
- This program has been tested on an EGA Packard Bell PB286 and IBM
- 3270/PC running MSDOS v3.30 and Novell Advanced NetWare v2.15, SEND
- v1.11, and USERLIST v2.10.
-
- SEND_FE features :
-
- ■ written specifically for Saber MENU support, but usable with
- any menu system, or from the command line.
-
- ■ Help screen via 'F1' key
-
- ■ '4-banger' calculator emulator via 'F3' key
-
- ■ Calendar for current month via 'F5' key
-
- ■ Program exit via 'F10' key
-
- ■ Supplies current server name, and allows editing (not too useful
- to us yet, but will when more servers are connected)
-
- ■ Subtracts the length of your network user name from 45 (the
- maximum allowable Novel message length) to prevent your messages
- from being 'cut off'.
-
- ■ Both server name and message text input routines allow fairly
- comprehensive editing flexability (left/right cursor, backspace, del,
- insert, and Control-C, which erases all input from the message box).
-
- ■ Determines who is currently logged into the network (to prevent
- you from sending messages to computers which are off-line), and
- allows you to choose any or all those logged in to receive your
- messages.
-
- SEND_FE was written to augment Saber MENU in that there was no easy way to send
- a Novell message from the menu. For instance -
-
- ITEM Send Messages {}
- GETP SEND MESSAGE TO : {}12{}
- GETP MESSAGE TO BE SENT : {}50{}
- EXEC SEND "%2" TO %1
- EXEC CLS
-
- This would have been fine, except that DOS considers a space as a command line
- delimiter, and the %2 parameter (containing the message) would ignore everything
- passed the first word. I would imagine most menu programs would have the same
- problem (although it appears Marshall McGee's AUTOMENU corrects for this
- internally).
-
- Originally I had intended to write a quick n' dirty filter to replace the space
- character (ASCII 32d) with another 'blank' character (ASCII 255d), but expanded
- it to include the above features in order to test some of the routines in the
- Crescent Software QuickPak Professional v3.14 library. Although it is
- less-than-perfectly color-aware (first time I've written for a color system), it
- does run on EGA and the 3270/PC adaptor without looking too ridiculous.
-
-
- revision history
-
- 08/08/90 Wrote initial version to fix problem with using SEND
- v1.00ß from a batch file (i.e. - as with Saber Menu).
- Bare minimum .. could be improved w/o too much effort
-
- 08/09/90 Added support for Saber Menu environment strings
- v1.10ß Changed temporary file creation for unique filenames (to avoid
- problems when multiple users are sending messages simultaneously)
- Added group EVERYONE as 'built-in' global SEND recipient
-
- 08/11/90 Added display of current time and date at message input screen
- v1.20ß Added command line parameter handling (not tested)
- Added help and error message boxes (not tested)
- Experimented with color combinations.
-
- 08/22/90 Truncated date display to hr:min format. Rework help screen.
- v1.30ß Drop command line parameter option. Rework input routines.
- Comment source code. Tested on 3270 graphics adaptor. Added
- calculator and calendar. Final beta. Released into user community.
- Note : Made changes in QPRO TEXTIN.BAS module. Renamed TEXTIN2.BAS
-
-
- If you have any comments or suggestions (or especially, if you know
- how to obtain the user list directly from the OS instead of shelling to
- USERLIST, and/or would like to point me at some assembler or QB source code)
- drop me a line.
-
- Sat 08-25-1990 CIS 73577,1257
- GEnie R.A.WELKER
- Bob Welker Exec-PC
-
-