Cuervo Posted October 7, 2008 Share Posted October 7, 2008 (edited) Is there a function to check system time on a computer and a way to loopit in a Do ... Until ? IE I want the macro to check current time and not execute further until a time of day has been reach. I see $begin = TimerInit() sleep(3000) $dif = TimerDiff($begin) MsgBox(0,"Time Difference",$dif) But the difference in time that I want is current system time on this computer. I did a search for time and system time but the search function keeps timing out. Edited October 7, 2008 by Cuervo -Tim Link to comment Share on other sites More sharing options...
November Posted October 8, 2008 Share Posted October 8, 2008 Is there a function to check system time on a computer and a way to loopit in a Do ... Until ? IE I want the macro to check current time and not execute further until a time of day has been reach. I see $begin = TimerInit() sleep(3000) $dif = TimerDiff($begin) MsgBox(0,"Time Difference",$dif) But the difference in time that I want is current system time on this computer. I did a search for time and system time but the search function keeps timing out. Hi there, I'm not sure if i understand your issue, nevertheless i'm going to give what i think is a hit: $time = @HOUR & ":" & @MIN & ":" & @SEC MsgBox(0,"Current System Time",$time) Cheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
bluelamp Posted October 8, 2008 Share Posted October 8, 2008 november is right, look at the UDF DateManagement (Date.au3) in the helpfile, there is all you need Link to comment Share on other sites More sharing options...
Marlo Posted October 8, 2008 Share Posted October 8, 2008 Maybe something like: $Hour = 12 $Min = 46 ;Will trigger at 12:46 Do ;Nothing Until @Hour = $Hour AND @Min = $Min ;code to be executed after the desired time Click here for the best AutoIt help possible.Currently Working on: Autoit RAT Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now