Version 0.6 Beta
|
Rainminder is a Litestep plugin which can
be used to display messages at desired times. It's useful to remind you
about important dates or perhaps just to inform that your favorite TV-show
is beginning.
Rainminder uses a very simple script-language for defining the moment when a certain message will be shown. The message can have different fonts and colors and can even display the contents of an ASCII-file. The message window grows/shrinks according to the amount of displayed text. Rainminder also has a build-in fortunecookie program to display random fortunes/quotes/jokes. Note that to use this feature you need a fortune-file which can be found around the Web (i.e. from a linux distribution). Rainminder can be used as wharf or as plugin module. When used as wharf it functions as lstime-compatible clock so you can easily replace your old clock with this one. |
|||||||
|
Currently there is no installer included,
but you probably have already gotten used to it with other Litestep
plugins.
To install just copy the Rainminder.dll to your Litestep directory (eg. C:\Litestep\), copy the images to the same folder where you keep all the other Litestep images (eg. C:\Litestep\Images), edit your Step.rc and create Rainminder.cfg. Check Step.rc and Usage for more info. |
|||||||
|
Configuring Rainminder
might be a bit tricky at least for people with no programming experience.
But I guess Litestep users are above average PC-users so there shouldn't
be any overwhelming problems :-) After all it's not that difficult. Check
the Step.rc
section for info about what is needed to change in there.
Rainminder uses a very simple script language to define events and results. The format is: IF Evaluation functions THEN Action Functions ENDIF. So every event must start with IF-word and end with ENDIF. Evaluation functions are evaluated once per second and if TRUE the action functions will be executed. You may use normal boolean operators (AND & OR) between the Evaluation functions. You may also group the functions with parenthesis. Some of the Evaluation functions need also a compare value (those that doesn't return a boolean value). As a compare operator you may use these:
Check the included configuration file (Rainminder.cfg) for examples. Now few things you should be aware of when playing with this piece of software:
|
|||||||
|
Evaluation functions Light red parameters are optional. File([FILENAME]) Year() Month() Day() Weekday() Hour() Min() Sec() Date() Time() FirstRun() Recycle() Click() BangActivate([ID]) QuickAlarm() AmpSongChanged() |
|||||||
|
Action functions Note that the font, color and alignment setting apply the whole line, so you can't use for example different colors in the same line. The last function for the current line is used even if it is located after the text. Light red parameters are optional. Text([STRING]) VariableText([STRING]) NewLine() Date([FORMATSTRING])
Time([FORMATSTRING]) Font([TYPEFACE], [HEIGHT], [STYLE]) Color([R], [G], [B]) Align(CENTER|LEFT|RIGHT) PrintFile([FILENAME]) Fortune([FILENAME]) Execute([FILENAME]) PlaySound([FILENAME]) ShowDuration([MINDURATION], [TEXTLENGTHFACTOR]) Bang([BANGCOMMAND], [ARGS]) AmpText() QuickAlarmText() Theme([THEMENAME]) Position([X], [Y], [HOLD]) BangText() |
|||||||
|
The Step.rc file needs
some modifications as well. If you don't want to use Rainminder as a wharf
you can just add Loadmodule C:\Litestep\Rainminder.dll to where
your other modules are loaded.
If you want to put Rainminder in your wharfbar do not use the LoadModule to load the plugin but define a wharf for it (i.e. *Wharf "Rainminder" RainminderWharf.bmp @C:\LITESTEP\Rainminder.dll). If you are using the lstime.dll as your default clockwharf the easiest way is just to replace it with Rainminder.dll. Important note: If you use Rainminder as a wharf and you don't have lstime as your clock you still need to set the step.rc commands that the lstime needs as Rainminder needs them too. Check Litestep documentation for more info about lstime. RMPixmapPath [PATH] RMTopLeftPic [FILENAME] RMTopPic [FILENAME] RMTopRightPic [FILENAME] RMLeftPic [FILENAME] RMRightPic [FILENAME] RMBottomLeftPic [FILENAME]] RMBottomPic [FILENAME] RMBottomRightPic [FILENAME] RMCenterPic [FILENAME] RMPositionX [INTEGER] RMPositionY [INTEGER] RMShowDuration [INTEGER] RMHold
TOPLEFT|TOPRIGHT|BOTTOMLEFT|BOTTOMRIGHT|CENTER RMConfig [FILENAME] RMTextLengthFactor [INTEGER] RMTheme [THEMENAME] Example additions to step.rc: *Wharf "Rainminder" RMWharf.bmp @C:\LITESTEP\Rainminder.dll RMPixmapPath "C:\Litestep\Rainminder\" RMConfig "C:\Litestep\Rainminder\Rainminder.cfg" RMPositionX 50% RMPositionY 50% RMShowDuration 40 RMTextLengthFactor 10 RMHold CENTER RMTheme "RMDefault" |
|||||||
|
There is also couple of
bang commands that can be used with Rainminder:
|
|||||||
|
Rainminders message window can be
customized with themes. The default theme is selected with RMTheme step.rc
command. The THEMENAME-parameter is the name of the forder where theme's
the images are. The forder is relative to RMPixmapPath. So for example if
your RMPixmapPath points to C:\Litestep\Rainminder and your theme
is called MyCoolTheme then the images should be in C:\Litestep\Rainminder\MyCoolTheme
-folder.
Different themes can be used with each message. You can define the used theme with Theme([THEMENAME])-Action function. The THEMENAME-parameter works the same way as with RMTheme. There is a seperate bitmap for each corner, edge and for the center. The edge and the center bitmaps are tiled if the area of the window is larger than the bitmap. The names of the bitmap are defined with RMTopLeftPic, RMTopPic, ... step.rc commands. All themes must have all the nine images. The sizes of the images may vary. Textarea is calculated from the edge bitmaps (left, right, top and bottom) so that the width of the left and right bitmap determine the horizontal position of the textarea and height of the top and bottom bitmap determine the vertical position. The message window also has a minimum size which is determined by the corner bitmaps. The minimum size is reached when only the corner bitmaps are visible. The window won't shrink smaller than the minimum even if there is not enough text to fill the whole area. You may use the traditional pink color (255,0,255) for transparency. |
|||||||
|
This program is free software. Like
Litestep, it is released under GNU General Public License as published by
the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Please note that this software is still in beta-state and is most likely to have defects and may not work as it should. Use it at your own risk. The author is not responsible for any damage, direct or indirect, that this software may cause. |
|||||||
|
The latest version will be found from my
homepage at:
You may also send comments and bug-reports to author: Please put the name of the product (i.e. RAINMINDER) in the subject-field of the mail. It may be useful if you write the version of the product also. |
|||||||
|
Here is some features which may be
included in the future:
|
|||||||
|
22 APRIL 2000 (Version 0.6 ฿)
18 DECEMBER 1999 (Version 0.5 ฿)
10 DECEMBER 1999 (Version 0.4 ฿)
23 SEPTEMBER 1999 (Version 0.3 ฿)
9 SEPTEMBER 1999 (Version 0.2 ฿)
31 JULY 1999 (Version 0.1 ฿)
|