Ok i have been working on some scripts but i have been stuck for a couple days trying to make a procedure that gets the system time and would if the time is between around 1 and 5 AM go to sleep for 5-9 hours/ until 6-11 am. I have reviewed lots of scripts with sleeping and far as i can tell non of the ones i have found use the time on the computer to choose sleep time. It would be simpler if when the GetSystemtime procedure was used the outcome wasn't just random numbers that make no since to me. If someone could please explane how to decode the outcome of the system time for has a procedure or even could just tell me how to do this it would be greatly appreciated! This is for use in scripts that have the ability to run for days... i just want to make them sleep properly.![]()


Reply With Quote



