Graffiti - A Cookie/Sigmonster Server
Graffiti is a free program, supplied with source code and written for our own amusement. It is supplied without warranty and/or guarantees of suitability and/or functionality. You can download the installation program , source code, or the original DECUS cookies.
This is a "fortune cookie" application (aka sigmonster or quotefile program) that can be loaded onto the toolbar on any modern Windows based computer. At intervals it will read a "fortune cookie" from one of a number of files supplied and display the "cookie" on the screen for a short period of time. The "cookie" may be anything from the sublime to the obscure and the user has the ability (if they so wish) to add additional cookies, edit, or remove cookies as all the data is stored in simple ASCII text files. The "cookies" can also be automatically written to signature files to produce random signatures with most common e-mail applications.

We wrote Graffiti for our amusement because we had enjoyed a similar program on RSX-11M, VMS and UNIX systems. Graffiti is a well behaved Windows application, it runs in the background and displays its fortune cookies on the screen using the Windows "tool-tips" interface and/or writes them to an output file.
Most of the fortune cookies here can be found on the original DECUS release of COOKIE - others have been collected from various USENET groups etc. The only commercial involvement that we have in the Graffiti application is the right-click menu which contains a some links to our web site if you care to use them. Graffiti is not spy-ware and does not "phone home" or contact us in any way other than a link that can (if you chose) check for updates to the program.
When installed in the Windows GUI toolbar the Graffiti application displays a small "bubble" icon that responds to mouse clicks. A right-click on the toolbar icon displays a menu that allows Graffiti to be customized while a left double click toggles the "active" status of the application - a small red "x" is displayed on the icon when Graffiti is paused and not serving any cookies. Two left double clicks will always generate a cookie on demand.
![]() |
The Graffiti program is controlled by the right mouse button on the toolbar icon (or from the Program menu if the icon has been hidden). The following control options are supported:
|
How to customize Graffiti
The Graffiti application has a large number of customization options allowing it to function in a number of different situations. The frequency of cookie display, duration and appearance are completely adjustable. Additional options can play sounds when the cookies are displayed or even suppress the screen display and simply update a .sig file to produce rotating email signatures.
Graffiti is normally controlled via the right click menu from the Windows toolbar but even this option can be hidden from the user, allowing the program to run in the background without any user interaction.
There are four "time" options
- Start showing Cookies after "n" seconds - Graffiti will not display any cookies until the application has been running for this length of time.
- Show Cookie for "n" seconds - This controls the length of time that each cookie remains on the screen. The time shown is multiplied by the number of lines in the cookie so that longer cookies are displayed long enough to read them.
- Time between Cookies "n" seconds - Sets the length of time that Graffiti will wait before displaying another cookie.
- Limit number of cookies play to - If checked then Graffiti will pause after a specified number of cookies have been displayed.
There are four screen options
- The box "Place cookie on Display" must be checked if cookies are to appear on the screen display. If this is not selected then cookies will continue to be generated (thus updating the sig file etc) but they will not appear on the screen.
- Cookies will appear in the lower right corner of the screen, by the toolbar icon unless the option "Place Cookie at Random Location" is selected. This will cause Graffiti to display the cookie at random positions on the screen. If you are working on an application and a cookie appears in an inconvenient place you can remove the cookie by simply clicking on it - the cookie will then disappear.
- You can specify a sound to be played whenever a cookie is displayed by checking the "Play Sound when Cookie pops up" box - click on the speaker icon to select any wav file - several sample .wav files are supplied with the installation.
- The font, size, and color used to display the cookie can be set via the font icon.
There are two signature options
All signature files must be plain ASCII text - unicode, rich text, and HTML signature files are not currently supported.
- Mail Signature File - you can specify a mail signature file as the cookie destination - if this option is selected then Graffiti will open the specified ASCII file and look for the RFC signature delimiter in the file "-- <CR><LF>" and will write the new cookie after the delimiter, replacing any previously existing cookie.
- Text File - if selected, this will write the current cookie to a file named output.txt as a single line of ASCII text without any formatting or line breaks. Graffiti will then look for a file called output.bat and run it if it exists - you can use this option to copy the output.txt file to a com port for example. The text file option always overwrites the previous cookie - thus the output.txt file always contains the ASCII text of the most recently generated cookie.
Source Code
Graffiti uses a simple ASCII file format to store the cookies so it's very easy to create your own cookie files or edit any of the files supplied. All cookie files use the .SRC file type but the files can be edited by any ASCII editor program such as Notepad, EMACS, VI, ED, EDT etc. The file format is simple - start and end each "cookie" with a double percent character "%%" on a single line - this is identical to the original VAX format used by the "Fortune Cookie" system.
Graffiti can select cookies for one or more files specified in the "Files being used" list shown in the customize dialog box. Use the "Add" and "Remove" buttons to select the cookie source files from the list shown. Note that cookie files that might offend people are only installed when you select the "custom" option during installation and check the (in)appropriate files. Don't install these if there is a chance that you might be offended
The source code for the Graffiti application is available for download - this compiles in a MS C++ environment. Please let us know if you improve the program.
Cookie file format
All cookie files are ASCII text files that have a .SRC file type. Cookies may be any length and should wrap at appropriate breaks with a CR/LF. Each cookie is delimited by a single line containing %% which signals the end of one cookie and the start of the next cookie. As a result, it's very easy to create completely new cookie files with your own favorite quotes or even make a flash card display to help memorize information.
An additional "quotefile" format is supported where each cookie is stored on a single line, delimited with a CR/LF. This format is suitable for single line cookies or quotes and is included for compatibility with older source files only - it's not recommended for new cookie files. An example of this is included in the installation as "quotefile.src" when "additional cookies" is selected in the custom installation.
Installation Notes - updated September 20th, 2006.
- Version 1.25 updates the http links for this page and our "web links" pages to reflect the new web site organization.
- Version 1.24 adds support for mail signature files, allowing the cookies to be automatically appended to ASCII text signature files used by many common mail clients and news readers that respect the RFC dash-dash-space convention. In addition, the installation has been updated to allow you to check for, and download updates to graffiti via the internet. Select the "About" box and click "Check for Upgrade" if you want to check for, and optionally download, any updates.
- Version 1.20 adds an option to the right-click menu to save the most recent cookie to the cut and paste buffer.
- There are three installation options - "Typical", "Compact" and "Custom" - the "Typical" installation is a standard installation with a selection of cookie files ... generally with G or PG contents. "Compact" installs the application and a single default cookie file, while "Custom" allows the user to select several additional cookie collections with contents that may offend some people - if you think you might be offended then don't install these cookie files.
- If you select Custom installation and deliberately choose the "offensive" cookies when Graffiti is installed then you will get copies of the "offensive" cookie files on your system. Don't come whining to us if you don't like them - in fact, don't even think of installing them if you would even consider complaining about their contents. You have been warned.
- Graffiti stores its configuration information in the HKEY_CURRENT_USER Registry key \Software\MLS\Graffiti. When a single computer is used by several different people, each user on the system will maintain their own configuration choices.
- By default Graffiti is run when you log into Windows - Graffiti starts via the graffiti key using the standard Microsoft registry method in HKEY_CURRENT_USER\ ...\CurrentVersion\Run - this registry key can be edited to include the switch -hidden if you wish to start Graffiti running in hidden mode without any toolbar controls visible (you should know where to find this key if you have sufficient clue to be editing the Registry). The -hidden switch has the same effect as selecting "Hide" from the right-click menu except that the user will never see the graffiti controls...
- If Graffiti is running in hidden mode you can regain control of the application by running Graffiti again - this will deselect the hidden mode without starting a second copy of the application. You can then regain control of Graffiti via the toolbar icon, change the settings to customize it and hide it again. When the computer is restarted it will keep the new settings.
- Graffiti will remember its installation directory (the default is "C:\Program Files\Graffiti") and will reuse this directory if you reinstall the application. Reinstallation will overwrite the existing Cookie files - if you want to start your own personal collection then create a "personal.src" file otherwise a later installation may delete your entries.
- The installation script (1.10 version) will shutdown Graffiti if it is running and then restart it when the installation completes.
- You can remove Graffiti via the standard Control Panel "Add/Remove" option - this will remove the application, all files supplied with it and all Registry changes.


