ozzymandius Posted July 9, 2009 Share Posted July 9, 2009 Hello, hoping someone can point me in the right direction. I've just started to learn AutoIt, and went through the documentation and tutorials. But I don't see a way to retrieve the PC's system time. I know I can get file creation times and what not, but how do I just get system time? What I basically want to do is launch an app, then at specific times (say 9am and 9pm) I want to automatically click on some windows and enter some data. The part I am stuck on is retrieving System Time from the PC and using that to mark the start of an action. Any help much appreciated. Link to comment Share on other sites More sharing options...
darkmaster071 Posted July 9, 2009 Share Posted July 9, 2009 (edited) Before you go posting on the forums: search the helpfile, search google, search forums. I just copied that code from searching 2mins, didnt even enter autoit. Otherwise good luck $Time = @HOUR & ":" & @MIN & ":" & @SEC $Date = @MON & "/" & @MDAY & "/" & @YEAR MsgBox(0, "", $Time & " " & $Date) Edited July 9, 2009 by darkmaster071 Link to comment Share on other sites More sharing options...
ozzymandius Posted July 9, 2009 Author Share Posted July 9, 2009 Thanks a bunch! I did do some searchs, but obviously I didn't search extensively enough. Will do better next time. Before you go posting on the forums: search the helpfile, search google, search forums. I just copied that code from searching 2mins, didnt even enter autoit. Otherwise good luck $Time = @HOUR & ":" & @MIN & ":" & @SEC $Date = @MON & "/" & @MDAY & "/" & @YEAR MsgBox(0, "", $Time & " " & $Date) Link to comment Share on other sites More sharing options...
herewasplato Posted July 9, 2009 Share Posted July 9, 2009 (edited) ... What I basically want to do is launch an app, then at specific times (say 9am and 9pm) I want to automatically click on some windows and enter some data. ...Welcome to the forum.You might want to just use the operating system's Task Scheduler to handle launching things at certain times. Edited July 9, 2009 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] 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