10-15-2008, 06:16 AM
I am trying to set up a macro that will run on the user-selected choice of every "x" minutes or hours or alternatively "on the hour" or "on the half-hour".
The first one I think I can do using this:
But for on the hour or half hour (i.e. 2 pm, 3pm, 4 pm or 2:30, 3:30, 4:30 etc), would the only way be to get the current time, figure out the number of seconds to the next time mark, trigger after that and then every hour's worth of seconds after that repeatedly?
Thanks... not necessarily asking anyone to take the time to do the code for me :oops: but just want to know if my strategy makes sense or if there is a much easier way.
Thanks,
Stuart
The first one I think I can do using this:
Gintaras Wrote:Function notepad_timer
Trigger: !cv"* - Notepad" "Notepad" "" "" "" 0x6
But for on the hour or half hour (i.e. 2 pm, 3pm, 4 pm or 2:30, 3:30, 4:30 etc), would the only way be to get the current time, figure out the number of seconds to the next time mark, trigger after that and then every hour's worth of seconds after that repeatedly?
Thanks... not necessarily asking anyone to take the time to do the code for me :oops: but just want to know if my strategy makes sense or if there is a much easier way.
Thanks,
Stuart