-
Posts
26,724 -
Joined
-
Last visited
-
Days Won
204
water last won the day on March 1
water had the most liked content!
About water

water's Achievements
-
ioa747 reacted to a post in a topic: Hour AM/PM ( yes, one more of these )
-
argumentum reacted to a post in a topic: Hour AM/PM ( yes, one more of these )
-
Tested with AutoIt 3.3.18.0 on a german W11 24H2 system. Works perfektly!
-
Musashi reacted to a post in a topic: Hour AM/PM ( yes, one more of these )
-
Yes, it works perfectly. He replied to Solve-Smart's post: "That's exactly what I was looking for". So I would wait for more users to ask for the AM /PM > 24 hours translation before thinking about adding this functionality to AutoIt. Thanks a lot for taking the time to look into this subject
-
argumentum reacted to a post in a topic: Hour AM/PM ( yes, one more of these )
-
On the german forum there is a guy who needs to translate date/time from AM / PM format to 24 hours format. His problem has already been solved, but I remember your thread in the engl. forum regarding AM / PM output formatting. I searched the forum for code to do the AM /PM > 24 hours translation - without success. So I decided to ask the master of date / time translation
-
argumentum reacted to a post in a topic: Hour AM/PM ( yes, one more of these )
-
Is my understanding correct that the latest/greatest AutoIt version does not allow to translate date/time from am/pm format to 24 hours format? I searched the forum but couldn't find an answer.
-
argumentum reacted to a post in a topic: New AD user accounts created with UDF _AD - (Moved)
-
New AD user accounts created with UDF _AD - (Moved)
water replied to pfdragon's topic in AutoIt General Help and Support
automate the onboarding and termination of employee accounts in AD. That's exactly the reason why I started to brush up Wooltowns AD UDF in the first place. The UAC function will be added to the next release of the AD UDF -
New AD user accounts created with UDF _AD - (Moved)
water replied to pfdragon's topic in AutoIt General Help and Support
I'm glad that a 12-year-old post is still able to solve today's problems -
New AD user accounts created with UDF _AD - (Moved)
water replied to pfdragon's topic in AutoIt General Help and Support
Never have seen the "unwilling" message before. I consulted Dr. Google and he came up with the following suggestion: Maybe this helps. -
New AD user accounts created with UDF _AD - (Moved)
water replied to pfdragon's topic in AutoIt General Help and Support
Could you please add _AD_ErrorNotify(1) at the top of your script? You should receive more detailed error information on the console. -2147352567 stands for HResult 0x80020009 which is a "general exception". -
New AD user accounts created with UDF _AD - (Moved)
water replied to pfdragon's topic in AutoIt General Help and Support
The UserAccountConrol attribute is a combination of many flags (described here). You can't simply set a single value. How to manage users is described here. Neither the _AD_CreateUser function nor any other function of the AD UDF provides an option to change the user account control though a lot of functions do set the UAC. I have written such a function to solve the problem by using function _AD_DisableObject as a template. MS provides an example in VB here. Unfortunately I do no longer have access to an Active Directory. The following code is hence UNTESTED. Please use this function at your own risk and run it on your Test AD System! If it works I will be happy to add _AD_ModifyUAC to the AD UDF. Function _AD_ModifyUAC allows to set or unset UAC flags. ; $iFunction = 1: The $iFlag bits are set in UAC. ; $iFunction = 2: The $iFlag bits are unset in UAC. EXAMPLE: _AD_ModifyUAC(Your_User_Object, $ADS_UF_PASSWD_NOTREQD, 2) ; Unsets the $ADS_UF_PASSWD_NOTREQD UAC flag. Func _AD_ModifyUAC($sObject, $iFlag, $iFunction) If Not _AD_ObjectExists($sObject) Then Return SetError(1, 0, 0) If StringMid($sObject, 3, 1) <> "=" Then $sObject = _AD_SamAccountNameToFQDN($sObject) ; sAMAccountName provided Local $oObject = __AD_ObjGet("LDAP://" & $sAD_HostServer & "/" & $sObject) Local $iUAC = $oObject.Get("userAccountControl") If $iFunction = 1 Then $oObject.Put("userAccountControl", BitOR($iUAC, $iFlag)) If $iFunction = 2 Then $oObject.Put("userAccountControl", BitXOR($iUAC, $iFlag)) $oObject.SetInfo If @error Then Return SetError(@error, 0, 0) Return 1 EndFunc ;==>_AD_ModifyUAC -
water reacted to a post in a topic: ControlTreeView / Task Scheduler - Help
-
ControlTreeView / Task Scheduler - Help
water replied to argumentum's topic in AutoIt GUI Help and Support
Now I get "Did it work: YES - Error: 0" in the SciTe console and the following task scheduler GUI. I did some research and it seems that Task Scheduler does not provide a way to automate the GUI. -
ControlTreeView / Task Scheduler - Help
water replied to argumentum's topic in AutoIt GUI Help and Support
Your solution does not work here. Windows 11, German system language. I just get: Wouldn't it be easier and more reliable to use my Taskscheduler UDF to access the information you are looking for 🤔 -
Help File/Documentation Issues. (Discussion Only)
water replied to guinness's topic in AutoIt Technical Discussion
I do not think this is sensible as the documentation in section "function notes" clearly states: