Program: BANK Version 1.00 - Automatically determines the maximum time avaiable for the user to deposit into his timebank and prompts him if he wishes to continue. Acknoledgements: Special thanks to Roger Wilco of The Bob Doesn't Eat Here BBS (905) 771-6422. for the site to be testing the program. Author: Jack Flash - Assumes absolutly no liability whatso ever from the use of the time bank program. program provided 'AS IS'. All rights reserved. Use: I liberate this program on the freeware market, meaning it is not a crime to use it and not pay for it. However, I maintain all the rights to it. If you find the program useful a donation of $2.00 would be appreciated and please send to address below. Or even just mail a post card stating your likes or dislikes towards the program. Unfortunatly, I have no idea of the response and cannot promise any replies. Source code is available, it is written in Borlands Turbo Pascal 5.5 and is available for $49.00 CDN. please specify media on which you you would like to receive the source code - 3.5" High density - 3.5" Double density - 5.25" High density - 5.25" Double density Address: Jack Flash c/o OFFICE BARN 11 King St E Colborne, Ont Internet: jflash@wbb.com Introduction: Bank is a utility for telegard version 2.7 that will automatically place time in the time bank when the user logs off. The amount of time added is limited by maximum amount that can be added in a day, the maximum time bank limit, and the amount of time a user has left online. Bank will list the users account and how much he has added after logging off. It will delay for upto 5 seconds or until the user presses a key. Requirements: - Telegard version 2.7 running with a fossil driver - AT class machine this includes 286's & up - an enhanced keyboard How the time bank works: - the program will search the current directory for the STATUS.DAT file. It uses this file to locate the USER.LST file that contains all the time bank data. - it will read the users record and add the maximum time allowed according to the following: which ever amount of time is lower will be added to the time bank account: 1) Time left on for today 2) maximum amount of time that can be added in one day 3) maximum allowed in the account Since the time left online is not available outside telegard itself, the program feeds keystrokes to the keyboard buffer and logs off the user by sending an F5 to the keyboard buffer. So it is important NOT TO CHAIN events after executing this 'DOOR.' Parameters: BANK.EXE %1 %2 %3 %4 %5 %6 %7 | | | | | | |-> Comport 0=COM1: 1=COM2:... | | | | | |----> Maximum time allowed in account. | | | | |-------> Maximum time that can be added in one day | | | |----------> ANSI flag 0 user doesn't have ANSI | | | 1 user does have ANSI. | | |-------------> Baud rate (0 for local) | |----------------> Time user has left online. |-------------------> User number. Installation: Place the BANK.EXE file in the telegards main directory, where the STATUS.DAT file is. Generate a New menu Item: Alter the default quit to main menu choice by making it hidden by pressing H. Go into the menu editor and (I)nsert a new menu file I called it BANK. Insert the following data 1. Long descript :(/B) Bank your remaining time and logoff 2. Short descript:(/B) Bank & Logoff 3. Cmd letters :/B 4. ACS required :"" 5. CmdKeys :D- 6. Mstring :bank.exe @R @T @B @G 60 600 2 flags :(Hidden) Q. Quit : ** Since this command is hidden it is not Necesary to enter fields 1 or 2. *** Note: to specify COM1: enter 0, COM2: enter 1 and so on as the last parameter. The above example is using COM3: for the comport. Go into the menu data portion (press X from the (M)odify menu menu) and enter data as folows Menu filename: BANK 1. Menu titles : 2. Help files :*Generic* / *OFF* 3. Prompt : () 4. ACS required :"" 5. Password :*None* 6. Fallback menu :MAIN 7. Forced ?-level:None 8. Generic info :4 cols - 4/3/5 9. Flags :--N-- Q. Quit ** Null fields and *Generic* are entered by placing a space in the fields, when prompted. Quit to the menu editor and start to edit all the menu's that You want the command to appear. For example the MAIN menu. Menu filename: MAIN Command #23 of 24 1. Long descript :(/B) Bank available time and logoff 2. Short descript:(/B) Bank & Logoff 3. Cmd letters :/B 4. ACS required :"" 5. Cmdkeys :-^ 6. MString :BANK;C;/B Flags :None Q. Quit A separate menu is used, and the command string is linked to the command in the BANK menu to prevent telegard from re-displaying the menu before it logs off the user. Therefore it is important to have the 'BANK' menu not display a prompt, have a Null string for a title (enter a space) and have all entries hidden. Your all set. Notes: - DO NOT CHAIN the menu items from the top calling menu. In other words if you have /B calling the bank program (indirectly) don't put another /B in the same menu. Especially a call to "HI". Doing so will result in the users online time not being deducted and time being deposited in the bank. - DO call the Bank program through a hidden menu to prevent unsightly redisplay of the calling menu.