Recently Browsing 0 members
No registered users viewing this page.
Please help me on how to fetch date/time of last windows 10 system restore point using autoit? Basically its about querying the last restore point.
I am bit stumped as to why I am not able to set the time in the Date control
#include <DateTimeConstants.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> Example() Func Example() GUICreate("My GUI get date", 200, 200, 800, 200) Local $idDate = GUICtrlCreateDate("1953/04/25", 10, 10, 185, 20, $DTS_TIMEFORMAT) ; to select a specific default format Local $sStyle = "HH:mm:ss" GUICtrlSendMsg($idDate, $DTM_SETFORMATW, 0, $sStyle) ; Set time Local $iRet = GUICtrlSetData($idDate, '13:33:37') ConsoleWrite('GUICtrlSetData returned ' & ($iRet = 1 ? 'success' : 'failure') & @CRLF) GUISetState(@SW_SHOW) ; Loop until the user exits. While GUIGetMsg() <> $GUI_EVENT_CLOSE WEnd MsgBox($MB_SYSTEMMODAL, "Time", GUICtrlRead($idDate)) EndFunc ;==>Example The documentation for GUICtrlSetData clearly mentions that it uses the same format as GUICtrlRead:
But I get failure
Thanks for the help in advance!
While searching for the solution to my problem, I have just gone through some of your old post.
My name is Alok Arora
Email id is *snip*
I am writing a code to store logs for each script I run. This I did by using FileWriteLog function and it is successfully storing logs in txt file.
Now, I have to work on to read the log file and if any script has been mistakenly clicked twice in a day script will pop up a message that task already done for the day by verifying entries in the log file.
I have the logic for it..
I mean a variable will read the log file and will search for the entry and will perform action if entry found or not.
I believe for reading the file I can write a code like
Now I am stuck on how to compare the log entry in log file.
Can you please help me in this?