Jump to content

Setting the windows clock

Recommended Posts

I don't know your answer.... bt maybe this could give some insight

Start button clock


AutoItSetOption("WinTitleMatchMode", 4)

Global $ExitScript
HotKeySet("^!x", "ExitScript");CTRL+ALT+X

For $i = 0 To 43200
If @HOUR <= 11 Then
  $Hour = @HOUR
ElseIf @HOUR > 12 Then
  $Hour = String(@HOUR - 12)
ElseIf @HOUR = 12 Then
  $Hour = String(@HOUR)
ElseIf @HOUR = 00 Then
  $Hour = "12"

$Time = $Hour & ":" & @MIN

ControlSetText("classname=Shell_TrayWnd", "", "Button1", $Time)
Sleep(30 * 1000)

Func ExitScript()




Link to post
Share on other sites

@ w0uter: I think it is working, but the time is refreshing faster than we can tell.

Opt ("WinTitleMatchMode", 4)
ControlSetText('classname=Shell_TrayWnd', '', 'TrayClockWClass1', 'test')
MsgBox(0, "Current", ControlGetText('classname=Shell_TrayWnd', '', 'TrayClockWClass1'))

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...