Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Feature Requests
 PowerHome Messageboard : PowerHome Feature Requests
Subject Topic: DAWN/DUSK/SUNRISE/SUNSET FUNCTION Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mr914
Newbie
Newbie
Avatar

Joined: January 29 2003
Location: United States
Online Status: Offline
Posts: 14
Posted: January 29 2003 at 19:47 | IP Logged Quote mr914

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 View mr914's Profile Search for other posts by mr914
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 29 2003 at 20:34 | IP Logged Quote TonyNo

That's a good idea! I'll second it.

Tony

Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: January 31 2003 at 10:44 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 31 2003 at 20:05 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: January 31 2003 at 22:59 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: February 01 2003 at 09:38 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
mr914
Newbie
Newbie
Avatar

Joined: January 29 2003
Location: United States
Online Status: Offline
Posts: 14
Posted: February 01 2003 at 14:56 | IP Logged Quote mr914

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 View mr914's Profile Search for other posts by mr914
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: February 03 2003 at 10:31 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: February 03 2003 at 10:34 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum