w0uter Posted October 13, 2005 Share Posted October 13, 2005 is there anyway that i can change the text of the windows clock (XP HOME SP 2) ControlSetText('classname=Shell_TrayWnd', '', 'TrayClockWClass1', 'test') fails My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Valuater Posted October 13, 2005 Share Posted October 13, 2005 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" EndIf $Time = $Hour & ":" & @MIN ControlSetText("classname=Shell_TrayWnd", "", "Button1", $Time) Sleep(30 * 1000) Next Func ExitScript() Exit EndFunc Exit 8) Link to comment Share on other sites More sharing options...
Skruge Posted October 13, 2005 Share Posted October 13, 2005 @ 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 comment Share on other sites More sharing options...
w0uter Posted October 14, 2005 Author Share Posted October 14, 2005 maby it just doesnt repaint ? its weird o_O My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll 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