Scripts Thread, AutoIt time script in Coding and Web Development; Hi, I need help creating a script in autoit which will display the local time in a message box and ...
17th May 2008, 06:46 PM #1
AutoIt time script
Hi, I need help creating a script in autoit which will display the local time in a message box and will say "The times is:"
All I have is:
I am really stuck on the function to show local time.
; Script Name : Change Background
; Author : Daniel Lambert
; Created : 2008
$time = ""
MsgBox (0, "Time Is", "The time is:" $time)
17th May 2008, 07:26 PM #2
Use the time macros:
@SEC Seconds value of clock. Range is 00 to 59
@MIN Minutes value of clock. Range is 00 to 59
@HOUR Hours value of clock in 24-hour format. Range is 00 to 23
@MDAY Current day of month. Range is 01 to 31
@MON Current month. Range is 01 to 12
@YEAR Current four-digit year
@WDAY Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday.
@YDAY Current day of year. Range is 1 to 366 (or 365 if not a leap year)
Use your time variable:
$time = @hour & ":" & @MIN
MsgBox(4096, "time", $time)
17th May 2008, 08:07 PM #3
Originally Posted by My220x
Also, IIRC, this should be:
MsgBox (0, "Time Is", "The time is: " & $time)
By kubasa in forum Windows
Last Post: 4th March 2008, 10:29 PM
By Mike-j in forum Scripts
Last Post: 28th February 2008, 06:22 PM
By russdev in forum Scripts
Last Post: 8th August 2007, 05:34 AM
By sidewinder in forum Windows
Last Post: 15th December 2006, 12:14 PM
By NetworkGeezer in forum Windows
Last Post: 1st June 2006, 05:13 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)