Standalone Clock
#1
Posted 15 April 2006 - 06:49 AM
#2
Posted 15 April 2006 - 07:02 AM
At work we cant change any of the control panel settings including the system clock. Well the problem is that the clock is like 43 minutes off. So how about a clock on its own?
Get a watch?
I'd add a "set time" option to the clock I'm working on, but it uses the @HOUR, @MIN, and @SEC macros, which are based off system time.
I believe there is a script on here somewhere that gets the current time off the internet. Try searching, or Google for an online clock.
#3
Posted 15 April 2006 - 08:43 AM
but yea i guess im basically trying to see if its actually possible to NOT run off of the system clock like every program i've ever seen. because even programs for different time zones will still have the same minutes. maybe it isnt possible since no one but me would actually want different minutes along with hours
Edited by CitizenErased, 15 April 2006 - 08:45 AM.
#4
Posted 16 April 2006 - 12:56 AM
Edited by Nutster, 21 April 2006 - 03:52 PM.
#5
Posted 16 April 2006 - 04:08 AM
#6
Posted 16 April 2006 - 06:11 AM
well im sure the administrator could just change the system clock, i was just trying to avoid contacting them as it usually takes about a month to get anything accomplished
Try
start run
control Timedate.cpl
#7
Posted 16 April 2006 - 07:39 AM
#8
Posted 16 April 2006 - 09:01 AM
That is how I manually set my system time.. and it might not be blocked on your system?
#9
Posted 16 April 2006 - 01:25 PM
#10
Posted 16 April 2006 - 06:05 PM
#11
Posted 17 April 2006 - 02:12 AM
i will try that, but they also have the power schemes locked too. and with that you can change stuff but it wont let you click apply or ok, if you do a message pops up letting you know its not allowed. so im thinking it may be the same.
Have you privileges to use an external program ?
edit : Uhhhh sorry :
>>>>>>>>>> no internet access on the operator computer
ClockWise
http://www.rjsoftware.com (shareware)
Options >>functions>>set date time>>> via internet
protocol = SNTP
Time server = tick.usno.navy.mil
clicca su >>> Set Clock
Atomic Clock Sync (free)
http://snipurl.com/palr
edit:
added time.vbs
Attached Files
Edited by Lapo, 17 April 2006 - 02:25 AM.
#12
Posted 18 April 2006 - 06:05 AM
still get the same "operator cannot change the system time"
maybe i could run a program that would display the system time... plus 32 (or whatever)
Edited by CitizenErased, 18 April 2006 - 06:06 AM.
#13
Posted 18 April 2006 - 07:06 AM
no luck
![]()
still get the same "operator cannot change the system time"
maybe i could run a program that would display the system time... plus 32 (or whatever)
maybe
HotKeySet( "{ESC}", "Close") Global $time_adjust = 32; set the time adjustment in minutes Global $sec = @SEC, $minute, $hour, $light, $time, $clocklabel GUICreate("*PCT Watch*", 200, 50, (@DesktopWidth - 188) / 2, (@DesktopHeight - 59) / 2) $clocklabel = GUICtrlCreateLabel("Loading...", 5, 5, 190, 40, 0x1000) GUICtrlSetFont($clocklabel, 24) GUISetState() While 1 $msg = GUIGetMsg() If $msg = -3 Then ExitLoop ElseIf $sec <> @SEC Then GUICtrlSetData($clocklabel, TimeSet()) EndIf WEnd Exit Func Close() Exit EndFunc;==>Close Func TimeSet() $minute = @MIN + $time_adjust $hour = @HOUR If $minute >= 60 Then $minute = $minute - 60 $hour = $hour + 1 EndIf $light = " AM" $sec = @SEC If $hour = 0 Then $hour = 12 ElseIf $hour = 12 Then $light = " PM" ElseIf $hour > 12 Then $hour = $hour - 12 $light = " PM" EndIf $time = $hour & ":" & $minute & ":" & $sec & $light Return $time EndFunc;==>TimeSet
8)
#14
Posted 18 April 2006 - 07:17 AM
When you said your time was off by 43 minutes.. I assumed it was 43 minutes slow, but this would be easy to change from the script I have here.
What this does is when your mouse moves ANYWHERE on your taskbar, a "tooltip" will be by your mouse with the readjusted time.
Global $Hour, $Min, $State While 1 $coord = MouseGetPos() If $coord[1] > (@DesktopHeight - 50) Then CalcAdjustedTime() ToolTip("Clock: " & $Hour & ":" & $Min & " " & $State) Else ToolTip("") EndIf Sleep(10) WEnd Exit Func CalcAdjustedTime() If @MIN + 43 > 60 Then $Hour = @HOUR + 1 $Min = (@MIN + 43)-60 Else $Hour = @HOUR $Min = (@MIN + 43) EndIf If $Hour > 12 Then $Hour = $Hour - 12 $State = "PM" Else $State = "AM" EndIf EndFunc
#15
Posted 18 April 2006 - 07:19 AM
Try them both out.
Edited by Simucal, 18 April 2006 - 07:19 AM.
#16
Posted 18 April 2006 - 07:22 AM
damn you guys really kick ass
#17
Posted 18 April 2006 - 07:34 AM
How about this (Should overlay your clock time exactly):
HotKeySet( "{ESC}", "Close") Global $time_adjust = 39,$sec, $min, $hour, $light, $time While 1 Timeset() ToolTip($time, (@DesktopWidth-56),(@DesktopHeight-22)) Sleep(10) WEnd Exit Func TimeSet() $min = @MIN + $time_adjust $hour = @HOUR If $min >= 60 Then $min = $min - 60 $hour = $hour + 1 EndIf $light = " AM" If $hour = 0 Then $hour = 12 ElseIf $hour = 12 Then $light = " PM" ElseIf $hour > 12 Then $hour = $hour - 12 $light = " PM" EndIf If $min < 10 Then $time = $hour & ":" & "0" & $min & $light Else $time = $hour & ":" & $min & $light EndIf Return $time EndFunc;==>TimeSet Func Close() Exit EndFunc
You adjust how much it is off by changing the value: $time_adjust
So if you wanted it to be ahead 32 minutes, the make the line read:
Global $time_adjust = 32,$sec, $min, $hour, $light, $time
Edited by Simucal, 18 April 2006 - 07:37 AM.
#18
Posted 18 April 2006 - 07:40 AM
once again, thank you... now to track down a usbdrive
edit: wow, i just tried it on my computer and its beautiful. i am in awe at your speedy script writing talents
Edited by CitizenErased, 18 April 2006 - 07:44 AM.
#19
Posted 18 April 2006 - 07:42 AM
Global $time_adjust = 32,$sec, $min, $hour, $light, $time
What style did you end up going with?
Edited by Simucal, 25 April 2006 - 05:52 PM.
#20
Posted 18 April 2006 - 07:47 AM
i think i have access to the registry, so hopefully i can make this autorun each day at startup
edit: ok well today i'll find out the exact time its off, come back and adjust the code accordingly, and then compile it to an .exe and try it out tomorrow.
Edited by CitizenErased, 18 April 2006 - 08:23 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users







