nag Posted December 14, 2007 Share Posted December 14, 2007 Class:WindowsForms10.SysDateTimePick32.app.0.2004eee;instance :2 Link to comment Share on other sites More sharing options...
Confuzzled Posted December 16, 2007 Share Posted December 16, 2007 Class:WindowsForms10.SysDateTimePick32.app.0.2004eee;instance :2Yes! Link to comment Share on other sites More sharing options...
JustinReno Posted December 16, 2007 Share Posted December 16, 2007 Are you using what you put as a control? Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2007 Share Posted December 16, 2007 Skip opening the control Right out of the help expandcollapse popup#include <GuiConstantsEx.au3> #include <Date.au3> Global $iMemo _Main() Func _Main() Local $hGUI, $tCur, $tNew ; Create GUI $hGUI = GUICreate("Time", 400, 300) $iMemo = GUICtrlCreateEdit("", 2, 2, 396, 296, $WS_VSCROLL) GUICtrlSetFont($iMemo, 9, 400, 0, "Courier New") GUISetState() ; Get current system time $tCur = _Date_Time_GetSystemTime() MemoWrite("Current system date/time .: " & _Date_Time_SystemTimeToDateTimeStr($tCur)) ; Set new system time $tNew = _Date_Time_EncodeSystemTime(8, 19, @YEAR, 3, 10, 45) _Date_Time_SetSystemTime(DllStructGetPtr($tNew)) $tNew = _Date_Time_GetSystemTime() MemoWrite("New system date/time .....: " & _Date_Time_SystemTimeToDateTimeStr($tNew)) ; Restore system time _Date_Time_SetSystemTime(DllStructGetPtr($tCur)) ; Get current system time $tCur = _Date_Time_GetSystemTime() MemoWrite("Current system date/time .: " & _Date_Time_SystemTimeToDateTimeStr($tCur)) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE EndFunc ;==>_Main ; Write a line to the memo control Func MemoWrite($sMessage) GUICtrlSetData($iMemo, $sMessage & @CRLF, 1) EndFunc ;==>MemoWrite SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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