Guest BL@(K-R34P3R Posted September 21, 2004 Share Posted September 21, 2004 This is my first clock. What is wrong, I keep compiling with SciTE and I keep getting MsgBox errors, Help me! ;Creates a clock function. Tells the year, month, day, hour, minute, and second. $sec = @SEC $min = @MIN $hour = @HOUR $mon = @MON $year = @YEAR ClockFunc() Func ClockFunc() MsgBox(17, "AutoIt Clock!", "Second: " &$sec, "Minute: " &$min, "Hour: " &$hour, "Month " &$mon, "Year: " &$year) EndFunc Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted September 22, 2004 Share Posted September 22, 2004 (edited) Try this: ;Creates a clock function. Tells the year, month, day, hour, minute, and second. $sec = @SEC $min = @MIN $hour = @HOUR $mon = @MON $year = @YEAR ClockFunc() Func ClockFunc() MsgBox(17, "AutoIt Clock!", "Second: " & $sec & " Minute: " & $min & " Hour: " & $hour & " Month: " & $mon & " Year: " & $year) EndFunc I didnt test it but it should work. *** Matt @ MPCS Edited September 22, 2004 by Matt @ MPCS Link to comment Share on other sites More sharing options...
lte5000 Posted September 22, 2004 Share Posted September 22, 2004 MsgBox(0, "AutoIt Clock!", "Second: " & @SEC & @LF & "Minute: " & @MIN & @LF & "Hour: " & @HOUR & @LF & "Month " & @MON & @LF & "Year: " & @YEAR) Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted September 22, 2004 Share Posted September 22, 2004 MsgBox(0, "AutoIt Clock!", "Second: " & @SEC & @LF & "Minute: " & @MIN & @LF & "Hour: " & @HOUR & @LF & "Month " & @MON & @LF & "Year: " & @YEAR) <{POST_SNAPBACK}>This isn't the same. It removes the stop-sign icon and the cancel button. It also puts each record on a line of their own. *** Matt @ MPCS Link to comment Share on other sites More sharing options...
lte5000 Posted September 22, 2004 Share Posted September 22, 2004 I know. I did it the way I like it. Your code does not work, take a look at your extra commas... Kendall Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted September 22, 2004 Share Posted September 22, 2004 I know. I did it the way I like it. Your code does not work, take a look at your extra commas... Kendall <{POST_SNAPBACK}>You're right, I fixed it... it works now. Thanks! @BL@(K-R34P3R The code sample I posted above works now. *** Matt @ MPCS Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted September 22, 2004 Share Posted September 22, 2004 Thanks both of you. I'm going to go try it out right now. I tried figuring it out on my own, but I'm not used to those damn commas and stuff, now I know though. Link to comment Share on other sites More sharing options...
Guest Guidosoft Posted September 22, 2004 Share Posted September 22, 2004 Thanks both of you. I'm going to go try it out right now. I tried figuring it out on my own, but I'm not used to those damn commas and stuff, now I know though. <{POST_SNAPBACK}>when I look at my clock I see a wavy swirl going around it and the whole room sort of twirls out of control and I see the clock and believe I HAVE THE POWER TO WARP TIME!!!!!!!! Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted September 22, 2004 Share Posted September 22, 2004 Does it include the flux capacitor? 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