On Friday, April 18, 2008, 1:16:37 PM, Vili wrote:
>> You may want to support this:
>> https://www.ritlabs.com/bt/view.php?id=6028

Done.

> I wrote a small program now in Delphi 3 for this. 190 kB.
...
> http://www.thebat.hu/TBAlert.exe
...
> Download, copy somewhere and point to that file in the filter and add
> the custom text. Simple for things like "You've got mail".

Thank you very much.  This will do the job for me.

Obviously my search skills are grossly inferior to Jens Franik's, but
I had time to play with this some more today, and worked up a script
that performed quite well outside TB. Unfortunately it won't run from
TB. I suspect that TB won't execute vbs files, but of course I could
be overlooking something in the code that TB is blocking. Aside from
being tiny, it also allows up to five parameters (arguments) to be
passed to it.

Just in case anyone would like to take it farther, I'm including the
code below:

'mailalert.vbs
Dim objArgs, vNum, vMsg, Arg(5)
Set objArgs = WScript.Arguments.Unnamed

For vNum = 0 to objArgs.Count - 1
        If vNum < 6 Then
                Arg(vNum) = objArgs(vNum)
        End if
Next

vMsg = "Type: " & Arg(0) & Chr(13) & _
        Chr(13) & _
        "From: " & Arg(1) & Chr(13) & _
        "Subject: " & Arg(2) & Chr(13) & _
        "Filter: " & Arg(3) & Chr(13) & _
        "Other Info: " & Arg(4)
MsgBox vMsg, VBOkay, "E-Mail Alert . . ."
Wscript.Quit

-- 
Best,

M-K
Using The Bat! v4.0.18 on Windows XP 5.1 Build 2600 Service Pack 2


________________________________________________________
 Current beta is 4.0.20.2 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to