Author |
|
mr914 Newbie
Joined: January 29 2003 Location: United States
Online Status: Offline Posts: 14
|
Posted: January 29 2003 at 19:47 | IP Logged
|
|
|
I think that for creating timed events that a selection for the daylight functions would be easier for newbies.
IE. DAILY, SUNRISE, RUN MACRO, MY MACRO
__________________ Never enough time for the fun stuff
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 29 2003 at 20:34 | IP Logged
|
|
|
That's a good idea! I'll second it.
Tony
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 31 2003 at 10:44 | IP Logged
|
|
|
You would Tony .
Alright, request granted...the next release will have Daily Sunrise, Daily Sunset, Daily Dawn, and Daily Dusk.
Additionally, I threw in Weekdays, Weekends, Sundays, Mondays, Tuesdays, Wednesdays, Thursdays, Fridays, and Saturdays.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 31 2003 at 20:05 | IP Logged
|
|
|
But of course!
Those other ones are also a great idea! I hope you weren't kidding!
Would there be a way to allow user declared functions like that? Well, I suppose that could be done by assigning a bunch of GV's, say, once per day, as 0 or 1 (i.e. [Day That Ends in Y]=1). Nevermind! Is there a limit to the number of GV's?
Tony
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 31 2003 at 22:59 | IP Logged
|
|
|
Tony,
Nope, not kidding . As a matter of fact Ive got a few more ideas rolling around in my head for Timed Events that Im going to explore.
GV's...the limit would basically be the size of your hard drive .
Could you explain a little more what you were talking about with user declared functions? It might be something I can do.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: February 01 2003 at 09:38 | IP Logged
|
|
|
Dave,
Cool!
What I meant, was being able to do what I stated above, but, eliminate the defining call, I guess.
Take Weekday...
[Weekday] | if( dayname( today()) <> "Saturday" and dayname( today()) <> "Sunday"), 1, 0)
There would be a way to define this, and, have it evaluated when used (or, maybe you would just do a behind-the-scenes string replacement, to make it easy on yourself ).
Did I explain it well enough? I'm not even sure...
Tony
|
Back to Top |
|
|
mr914 Newbie
Joined: January 29 2003 Location: United States
Online Status: Offline Posts: 14
|
Posted: February 01 2003 at 14:56 | IP Logged
|
|
|
Thanks Dave!
How about one for Daylight savings time? :) I've got some light routines that I only need to run when daylight savings time is active....
Thank you for your support. Looking forward to the next relese.
__________________ Never enough time for the fun stuff
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: February 03 2003 at 10:31 | IP Logged
|
|
|
Tony,
I think I understand now. Actually, you were right the first time. The best way to implement this functionality would be with global variables. Your weekday and weekend examples would be:
{WEEKDAY} if(daynumber(today()) >= 2 and daynumber(today()) <=6,1,0)
{WEEKEND} if(daynumber(today()) = 1 or daynumber(today()) = 7,1,0)
You would then be able to use these GV's anywhere you wanted to compare for weekend or weekdays. This would actually work quite well because you can have virtually an unlimited number of global variables and the access would be extremely quick because the call would come from an indexed database.
Dave.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: February 03 2003 at 10:34 | IP Logged
|
|
|
Keith,
I can add a formula function which returns either a 1 or 0 whether it is daylight savings time or not. You could then just have timed event's action type of sendkeys and do something like: ph_rtne(if(ph_daylightsavings(today()) = 1,ph_macro("YOUR MACRO"),0))
Dave.
|
Back to Top |
|
|