home *** CD-ROM | disk | FTP | other *** search
- FakeFD // Absolute Solutions
- ----------------------------
-
- Copyright 1992-1994 Mats Wallin; All rights reserved
-
- Introduction
- ------------
-
- FakeFD is a small program, that can be used for tossing mail
- in the background, running events, and doing other automated
- things.
-
- FakeFD supports X-events in a FrontDoor event file, which can
- be used to run certain things automatically at certain time of
- days.
-
- FakeFD also supports the standard FXIT<task>.* semaphores, and
- if it detects one (with it's TASK number), it exits with the
- specified errorlevel.
-
- FakeFD also supports any number of other (semaphore) files,
- that can trigger exits, or prevent FakeFD from exiting.
-
-
- FrontDoor shareware version
- ---------------------------
-
- FakeFD was initially designed to be used with FrontDoor
- MultiLine, but it is possible to use it with the shareware
- version also.
-
- It is recommend, but not necessary, to use the TASK
- environment variable when running FakeFD. By doing this, you
- can have your own event file for FakeFD. Just create a event
- file as usual in FDSETUP, and then rename it EVENTn.FD, where
- n is the task number. If this file doesn't exist, FakeFD will
- use EVENT.FD instead.
-
- The FDXIT<task>.* semaphore also acts a little bit different
- than FrontDoor shareware does. FakeFD will not use FDXIT.*, it
- does require a task number in the filename. If TASK isn't
- defined, FDXIT0.* will be used.
-
- To set the TASK environment variable, just use 'SET TASK=n'
- where n is the task number you would like to use.
-
- For the shareware version, the FrontDoor semaphore directory
- is the same directory as the system directory.
-
-
- Keyboard commands
- -----------------
-
- There are a few predefined keyboard commands that FakeFD
- understand, and they try to use the same key combinations as
- FrontDoor does. The following predefined keys exists:
-
- Alt-K Display list of user defined keys
- Alt-Q Exit FakeFD (with errorlevel 10)
- Alt-Z DOS shell
-
-
- Configuration file
- ------------------
-
- FakeFD also has its own configuration file, where you can
- define what the different keys should do, and other semaphore
- files that FakeFD should look for, and use.
-
- Each line in the configuration file contains a definition for
- FakeFD, and there is two types of definitions; keys and
- semaphore files.
-
- The configuration file can contain comments, which should
- start with a ; character, and blank lines. If a space is
- needed in the middle of a parameter, or if the case of the
- text is important, surround the parameter with " characters.
-
-
- Key definitions
- ---------------
-
- To define what a key should do, when it is pressed, use the
- /key setting in the configuration file. The format of this
- definition is:
-
- /KEY=<key> /SCAN=<scan> /ERRORLEVEL=<err> /DESCRIPTION=<text>
-
- where:
-
- <key> is the name of the key, and you can enter any text you
- would like here, but I do suggest something useful. <key> is
- displayed together with <text> when you press Alt-K to display
- a list of all user defined keys.
-
- <scan> is the scan code this key generates (in hex). It is
- actually this code that FakeFD uses to determine which key you
- pressed. If you don't know the scan code for a key you would
- like to use, just run FakeFD, and press it. FakeFD will always
- display the scan code for a key, if the key hasn't been
- defined.
-
- <err> is the errorlevel FakeFD should exit with, when you
- press this key. Your .BAT file can then determine which key
- you pressed, and do whatever you would like.
-
- <text> is a description of what the key does, and is displayed
- when you press Alt-K, together with <key>.
-
- A few examples of key definitions:
-
- /KEY=F1 /SCAN=3B00 /ERRORLEVEL=200 /DESCRIPTION="Scan"
- /KEY=F2 /SCAN=3C00 /ERRORLEVEL=201 /DESCRIPTION="Toss"
- /KEY=F4 /SCAN=3E00 /ERRORLEVEL=100 /DESCRIPTION="RemoteAccess"
- /KEY=F12 /SCAN=8600 /ERRORLEVEL=255 /DESCRIPTION="Restart"
- /KEY="Shift F2" /SCAN=5500 /ERRORLEVEL=203 /DESCRIPTION="Comp nodelist"
-
- /key, /scan and /errorlevel is required for this type of
- definition.
-
-
- Semaphore definitions
- ---------------------
-
- You can also define different files that FakeFD should look
- for, and when it finds the file, exit with a certain
- errorlevel, wich either can be set in the configuration file,
- or retrieved from the extension of the filename.
-
- The format of a semaphore definition is:
-
- /SEMAPHORE=<sem> /IFNOTEXIST=<file> /DELETESEMAPHORE
- /ERRORLEVEL=<err> /SINCETIME=<secs> /WAITTIME=<wait>
-
- where:
-
- <sem> is the name of the semaphore file to wait for. The
- filename can contain a complete path and wildcards. If only
- the filename is specified, FakeFD checks for this file in the
- FrontDoor semaphore directory.
-
- <file> is the name of a file that may not exist. While it does
- exist, FakeFD will ignore the <sem> file specified in this
- definition. The filename can contain a complete path and
- wildcards. If only the filename is specified, FakeFD checks
- for this file in the FrontDoor semaphore directory.
-
- <err> is the errorlevel FakeFD should exit with, when the
- semaphore file is found, and all the other definitions are
- fulfilled. If <err> is not defined, FakeFD will use the
- extension of the semaphore file as the errorlevel.
-
- <secs> is the number of seconds that FakeFD waits before exiting,
- from the time the semaphore file was created.
-
- <wait> is the number of seconds that FakeFD waits before
- exiting, from the time FakeFD detects the semaphore file. If
- FakeFD exits before this number of seconds has passed, FakeFD
- will wait this number of seconds again, when it restarts.
-
-
- If the /SINCETIME or /WAITTIME parameters are used together
- with the /IFNOTEXIST parameter, /IFNOTEXIST will only prevent
- FakeFD to detect the semaphore file. When FakeFD once has
- detected the semaphore file, it will not check for the
- /IFNOTEXIST semahore file again.
-
- If the /DELETESEMAPHORE parameter is specified, FakeFD will
- delete the semaphore file when it exits with the specified
- errorlevel.
-
- A few examples of semaphore definitions (all examples below
- should be specified on one line in the configuration file):
-
- /SEMAPHORE=WAITEXIT.* /SINCETIME=300 /DELETESEMAPHORE
-
- This definition specifies that FakeFD should look for the file
- WAITEXIT.* in FrontDoor's semaphore directory. When it finds a
- file matching this filename, it will exit 300 seconds (5
- minutes) after the files creation time, and the file will be
- deleted when FakeFD exits. The errorlevel FakeFD exits with is
- taken from the extension of the file.
-
- /SEMAPHORE=RUNPING.NOW /IFNOTEXIST=FDINSESS.* /ERRORLEVEL=202
- /DELETESEMAPHORE
-
- This definition specifies that FakeFD should exit with
- errorlevel 202, if the semaphore RUNPING.NOW exits, but
- FDINSESS.* does not exist. This can be used to force FakeFD to
- wait for FrontDoor to complete a sessoin before exiting to do
- something. When FakeFD exits, the RUNPING.NOW semaphore will
- be deleted.
-
- /SEMAPHORE=O:\FIDO\*.PKT /WAITTIME=300 /ERRORLEVEL=201
-
- This definition specifies that FakeFD should exit with
- errorlevel 201, 300 seconds (5 minutes) after it finds a .PKT
- file in the O:\FIDO directory. The .PKT file will not be
- deleted when FakeFD exits.
-
-
- /semaphore is required for this type of definition.
-
-
- Legal notice
- ------------
-
- FAKEFD is provided to you as is, without warranty of any
- kind. In no event shall Mats Wallin be liable to you or
- anyone else for any damages or costs arising from the use
- or inability to use this program.
-
- FAKEFD is protected by copyright laws, and may not be
- modified, reversed engineered, sold or distributed in any
- way that would involve some sort of trade, without written
- permission from Mats Wallin.
-
- FrontDoor is a registered trademark of Joaquim Homrighausen.
-
- All other brand or product names are trademarks or registered
- trademarks of their respective holder.
-
-
- Registering
- -----------
-
- FAKEFD can be used free of charge, for as long as you would
- like.
-
- If you find FAKEFD valueable, I would appreciate a message
- from you.
-
-
- Bug reports, suggestions, etc.
- ------------------------------
-
- If you find any bugs, or have suggestions or comments on
- this program, I would appreciate if you would let me know.
- Send the information to me at:
-
- 2:270/19@fidonet or mw@abslu
-