Hello solid,
ss = solid snake
On Mon, 15 Jan 2001 at 14:52:11 GMT +0700 (which was 11:52 PM where
I live) witnesses say solid snake typed:
ss> I have small idea,
ss> on Reply Template
ss> Example if the time 00:00 PM until 03:00 PM the reply template should
ss> be "Afternoon"
ss> and so on for other time, please help me..!
It could probably be done using a series of cascading Quick Templates
and conditional regexps. However, this is somewhat daunting at the
moment.
The basic setup would be something like:
--- Quasi-Template ----
%SETPATTREGEXP="(?(?=0?[0-2]\:\d\d)0?[0-2]\:[0-5][0-9]\sPM;(Afternoon);|.*;Afternoon;(.*))"%REGEXPBLINDMATCH="%TIME;Afternoon;%QINCLUDE=""Not
Afternoon"""%SUBPATT="1"%SUBPATT="2"
--- End Quasi-Template ---
You would need to create a Quick Template called "Not Afternoon" that
generates the appropriate word (eg Morning, Evening, etc) using
similar regexps set for the appropriate time intervals. The one above
is for "00:00 PM" to "02:59 PM" and generates "Afternoon" in that time
interval. It seems to work pretty well with my short time display
settings.
For "10:00 PM" to "11:59 PM" you would need something like: "1[01]\:[0-5][0-9]\sPM"
If you give me a more complete list of times/greetings, then I can
help you more. Also, please include a sample of what the %TIME macro
returns for you. A couple of data points (morning, afternoon, etc.)
would be useful.
Perhaps someone else can guide you through the finishing steps of this
gauntlet. I think I need some sleep before I attempt it. :-)
Good luck.
--
Thanks for writing,
Januk Aggarwal
Using The Bat! 1.49c under Windows 98 4.10 Build 2222 A
I should probably engage that largish, grey organ lurking inside of my
skull a bit more often. I think it's called a brain. -- Simon
--
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
<mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
<mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------
You are subscribed as : [email protected]