tommy13061980 0 Posted May 31, 2010 Hello, I am quitte new with AutoIt. One thing i just can not solve. My program needs to set the windows clock to a specific time. Example: Script -> Change windows clock to 07:30 I found this: _Date_Time_SetTimeZoneInformation But it is a little bit difficult for me to understand. I only need to change the visible clock time in the bottom left corner. Any help will be appreciated very much. Many thanks in advance Share this post Link to post Share on other sites
water 2,392 Posted May 31, 2010 (edited) To set the current local time of your PC use: _Date_Time_SetLocalTime(). In the help file you'll find an example. Edited May 31, 2010 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
tommy13061980 0 Posted May 31, 2010 Thank you very much Mass Spammer. And also for so fast answering. It seems to work perfect on XP. I still need to test on VISTA. Share this post Link to post Share on other sites
Fire 3 Posted May 31, 2010 Hi. Another way for change windows time : NOTE: You need administrative privilegies for this operation. #RequireAdmin RunWait("cmd.exe /c " & "time 07:30",@ScriptDir,@SW_HIDE) [size="5"] [/size] Share this post Link to post Share on other sites
tommy13061980 0 Posted May 31, 2010 Hi, Thanx both of you. But, as i espected, VISTA sais, can not change windows time. User has not the right privileges. is thwere any way i can get arround that. Another option is to change the creation date of a file. But the file has a crc check. Share this post Link to post Share on other sites
water 2,392 Posted May 31, 2010 The help file says: "Function _Date_Time_SetLocalTimeThe SetLocalTime function enables the SE_SYSTEMTIME_NAME privilege before changing the local time." If you don't have this privilege then there is no way to change the time. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites