Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/09/2020 in all areas

  1. You could also use the Local Account UDF. Example below. #RequireAdmin #include <LocalAccount.au3> Global $sUserName = "Admin" _AccountDisableProperty($sUserName, $ADS_UF_LOCKOUT) If @error Then ConsoleWrite(@error & @CRLF) Adam
    2 points
  2. also @TheXman suggestion is very good as an alternative. can be easily scripted
    1 point
  3. Thank you @Jos for the original code and @Earthshine for the help with my specific issue. I really appreciate it.
    1 point
  4. Just execute the NET USER command with the /ACTIVE:YES switch. If you want to change the password at the same time, just add the new password to the command line.
    1 point
  5. Subz

    Show .ini to Combobox

    You will need to post the Scite console error as the code above runs fine for me, I tested before posting.
    1 point
  6. Subz

    Show .ini to Combobox

    Going to assume your English isn't your first language, because your response didn't really make sense, "yes I know, online is full of examples" implies you already know the answer to the original OP. To save banter here is a working example of what I mentioned above. Combo.ini [ComboBox] ComboBox1 = You chose ComboBox1 ComboBox2 = You chose ComboBox2 ComboBox3 = You chose ComboBox3 #include <Array.au3> #include <GuiComboBoxEx.au3> #include <GUIConstantsEx.au3> Example() Func Example() Local $aCombo = IniReadSection(@ScriptDir & "\Combo.ini", "ComboBox") _ArrayDelete($aCombo, 0) ;~ Delete first column count GUICreate("Example", 300, 200) Local $idComboBox = GUICtrlCreateCombo("", 10, 10, 185, 20) GUICtrlSetData($idComboBox, _ArrayToString($aCombo, "|", -1, -1, "|", 0, 0), $aCombo[0][0]) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $idComboBox $iCombo = _GUICtrlComboBoxEx_GetCurSel($aCombo) MsgBox(4096, "", $aCombo[$iCombo][1]) EndSwitch WEnd GUIDelete() EndFunc
    1 point
  7. argumentum

    Show .ini to Combobox

    ..ok, @Subz will help you
    1 point
×
×
  • Create New...