robby Posted April 12, 2007 Report Share Posted April 12, 2007 I know this will be an easy question to answer so please help – I have created a few Macros by assigning them to Hotkeys and have been using them since the past six months. My query is – Is there anyway that these Macros can be scripted to not work between specific dates – say, I do not want them to function between 1/May/2007 to 10/May/2007 and then again work from 11/May/2007 onwards? Else, is there a way whereby the Macros will work only till 30/April/2007 and then effective 1/May/2007 stop functioning altogether? I do not mind re-scripting them to work from 11/May/2007 onwards. Also, I have some 30 Hotkeys that have been assigned. Is there a simpler way to change the properties so that I can do the above desired change in a quicker and easier manner? Any assistance would be appreciated… Quote Link to comment Share on other sites More sharing options...
Cory Posted April 12, 2007 Report Share Posted April 12, 2007 Sure, use the Date/Time to have the macro get the current date and do some comparisons when the macro fires. Now ME can't natively do date comparisons so either you need ot do some clever parsing or buy the PG Macros functions library. Quote Link to comment Share on other sites More sharing options...
robby Posted April 13, 2007 Author Report Share Posted April 13, 2007 Thanx! Cory for your reply but I think I have found the solution to my query . It seems quite simple » use the "Scheduling - At File Load" option. In the Properties section, under Run Macro, choose the Load File option and then assign the day, date(s) and time as desired. The method you have suggested would have been too difficult for a novice like me... Quote Link to comment Share on other sites More sharing options...
wbeldman Posted April 23, 2007 Report Share Posted April 23, 2007 FYI: Now ME can't natively do date comparisons Sort of... in date format YYYYMMDD you can do an ASCII comparison. The ASCII value (character number) of 3 is smaller than the ASCII value of 4... Date: Save YYYYMMDD (20000319) into %T90% If Variable %T90% > variable %T95% You'd better use the Text - Date command to get the proper format. Note that you can also compare timestamps (date & time) but remember that a date with time addition is always larger than one without. Date: Save YYYYMMDD (20000319) into %T90% Time: Save hhmm (1544) into %T91% Variable Modify String: Append %T91% to %T90% If Variable %T90% > variable %T95% Quote Link to comment Share on other sites More sharing options...
Dennis Posted April 24, 2007 Report Share Posted April 24, 2007 Here is another way: Create a new macro with a scheduled activation that uses the Macro Disable or Macro Enable command to disable or enable the other macros as needed. --Dennis Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.