ozzymandius Posted July 9, 2009 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.
darkmaster071 Posted July 9, 2009 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
ozzymandius Posted July 9, 2009 Author 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)
herewasplato Posted July 9, 2009 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]
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