08-26-2007, 03:36 AM
Hey guys, was just wondering if there is a way I could access the system clock and incorporate it into a "IF, then, else" statement.
I have a macro which I would like to alternate the amount of time In which it repeats a program based on the time of day, what do you reckon would be the best way? .
For example in pseudocode,
rep x until 12 pm rep x until 1 pm and so fourth. Or would i be better of having some kind on on going timer that executes when x amount of time has passed.
_i=Uniform(1 50)
rep _i
For example this code above i would like to run for 3 hours then after x amount of time /time of day change it to
_i=Uniform(50 150)
rep _i
Thank you very much in advance for any ideas or suggestions.
PS, im very new to this so if you could provide an example/code with your replys.
Kind Regards
Paul
I have a macro which I would like to alternate the amount of time In which it repeats a program based on the time of day, what do you reckon would be the best way? .
For example in pseudocode,
rep x until 12 pm rep x until 1 pm and so fourth. Or would i be better of having some kind on on going timer that executes when x amount of time has passed.
_i=Uniform(1 50)
rep _i
For example this code above i would like to run for 3 hours then after x amount of time /time of day change it to
_i=Uniform(50 150)
rep _i
Thank you very much in advance for any ideas or suggestions.
PS, im very new to this so if you could provide an example/code with your replys.
Kind Regards
Paul