Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Macros, Scripts, and Formulas Repository
 PowerHome Messageboard : PowerHome Macros, Scripts, and Formulas Repository
Subject Topic: MACRO: Testing between 2 Times Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
nadler
Super User
Super User


Joined: February 25 2006
Location: United States
Online Status: Offline
Posts: 354
Posted: December 21 2006 at 11:05 | IP Logged Quote nadler

This simple macro is called by other macros. It checks to see if the time is between 6 am and 8 am. If so it says "Good morning" and runs the Get Weather macro which announces the complete weather.

insert into macroheader values ('TESTING BETWEEN TIMES','TEST',0,1,1);
insert into macrodetail values ('TESTING BETWEEN TIMES',1,37,'',NULL,'Called from other macros, this macro tests between 2 different hours',0,'');
insert into macrodetail values ('TESTING BETWEEN TIMES',2,16,'',NULL,'If(hour(now())>5,1,999)
',0,'');
insert into macrodetail values ('TESTING BETWEEN TIMES',3,16,'',NULL,'if (hour(now())<9,1,999)',0,'');
insert into macrodetail values ('TESTING BETWEEN TIMES',4,9,'',NULL,'"Good Morning"',0,'');
insert into macrodetail values ('TESTING BETWEEN TIMES',5,1,'GET WEATHER',1,'',0,'');
insert into macroheader values ('TESTING BETWEEN TIMES','TEST',0,1,1);
insert into macrodetail values ('TESTING BETWEEN TIMES',1,37,'',NULL,'Called from other macros, this macro tests between 2 different hours',0,'');
insert into macrodetail values ('TESTING BETWEEN TIMES',2,16,'',NULL,'If(hour(now())>5,1,999)
',0,'');
insert into macrodetail values ('TESTING BETWEEN TIMES',3,16,'',NULL,'if (hour(now())<9,1,999)',0,'');
insert into macrodetail values ('TESTING BETWEEN TIMES',4,9,'',NULL,'"Good Morning"',0,'');
insert into macrodetail values ('TESTING BETWEEN TIMES',5,1,'GET WEATHER',1,'',0,'');
Back to Top View nadler's Profile Search for other posts by nadler
 

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