Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/27/2014 in all areas

  1. I've written some scripts based on the Active Directory UDF (for download please see signature). In this thread I would like to share some of them. ADAudit On one/multiple big sheet(s) you get users (columns) and groups (rows). The list is sorted descending by number of members so you get the users with most groups and the groups with most members on top of the page. You can filter by (multiple) samaccountname(s), department or you can create your own LDAP query filter. You can filter the resulting list of groups using a Regular Expression. Link to the Downloads section: History: _AD_Example_GetOUTreeView This example script displays all OUs in a TreeView. You can specify the FQDN of the OU where to start if you just want to see a subset. Download: _AD_Example_GetOUTreeView.zip History: ADAT - Active Directory Administration Tool ADAT is a tool to simplify common AD administration tasks. Every administration task has its own tab. It is easy to add new functions (tabs) to the tool. Some often used functions are already available: list users, computers, OUs. File ADAT.ini can be customized to hold the AD logon information if necessary. By default the user running the script connects to the AD. Check this post for some screenshots. Link to the Downloads section: History: ADCU - Active Directory Compare Users ADCU displays two users and their group membership in two listviews. You can filter and export the data to Excel, Outlook mail and the clipboard. Before running the script you need to change check_access.au3 and AD-Tools.ini Link to the Downloads section: ADCG - Active Directory Compare Groups ADCG displays two groups and their direct members in two listviews. You can filter and export the data to Excel, Outlook mail and the clipboard. Before running the script you need to change check_access.au3 and AD-Tools.ini Link to the Downloads section: Examples by other users Active Directory Tool: UserInfo by Marc. Download (added 2013-07-29). Grab a users photo from AD and create a JPG file on disk (added 2017-01-21). Link to forum
    1 point
  2. 1 point
  3. $checkbox = _IEGetObjByName($oIe, 'remember') MsgBox(0,"Checkbox:",$checkbox.checked)
    1 point
  4. ahmedar. Can I now mark #2864 as resolved? Was my suggestion correct? M23
    1 point
  5. This form has no name, why are you using _IEFormGetObjByName($oIE, "form")? You can get object by name indirect with _IEGetObjByName or _IEGetObjByID $oName = _IEGetObjByName($oIe, 'email') _IEFormElementSetValue($oName,'blabla@gg.blabla') $oRemember = _IEGetObjByName($oIe, 'remember') $oRemember.checked = True
    1 point
  6. ? #Include <Array.au3> Local $string = "Bela\20Vista\20International\20Eyes" $res = StringRegExp($string, '((?:\w+)|(?:\\..))', 3) _ArrayDisplay($res)
    1 point
  7. here's a beta version. #include <GUIConstantsEx.au3> Global $aFuncs[] $aFuncs[0] = _Func_1 $aFuncs[1] = _Func_2 Global $WhichFunc = 0 $hGUI = GUICreate("Test", 100, 60) $hButton_1 = GUICtrlCreateButton("Func1/Func2", 10, 10, 80, 40) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $hButton_1 $aFuncs[$WhichFunc] () $WhichFunc = Not $WhichFunc EndSwitch WEnd Func _Func_1() MsgBox(1, "Func1", "This is Func 1") EndFunc ;==>_Func_1 Func _Func_2() MsgBox(1, "Func2", "This is Func 2") EndFunc ;==>_Func_2
    1 point
  8. Hi, Can I join in too? #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> $hGUI = GUICreate("Test", 500, 500) $cButton = GUICtrlCreateButton("Func 1", 10, 10, 80, 30) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $cButton Switch GUICtrlRead($cButton) Case "Func 1" _Func_1() GUICtrlSetData($cButton, "Func 2") Case "Func 2" _Func_2() GUICtrlSetData($cButton, "Func 1") EndSwitch EndSwitch WEnd Func _Func_1() MsgBox($MB_SYSTEMMODAL, "Func 1", "This is Func 1") EndFunc ;==>_Func_1 Func _Func_2() MsgBox($MB_SYSTEMMODAL, "Func 2", "This is Func 2") EndFunc ;==>_Func_2 M23
    1 point
  9. DXRW4E

    AutoIt v3.3.13.19 Beta

    I'm not a pro of the C++ indeed I know little, but what do I know that is not Rvalue or Lvalue that is a temporary object (that must be destroyed when no longer needed), and a temporary object is const, all standart library have already func (with paramenter) in pointer and reference and const and non-const (Operator and Function Overloading, if not this does not work after (1 + (2 + 3)) or ("String1" + ("Sring2" + "String3")) etc etc), so is not wrong to send a temporary object as (const) byref Ciao.
    1 point
  10. You can do it with a flag variable, here I used $Func1 #include <GUIConstantsEx.au3> Global $func1 = True $hGUI = GUICreate("Test", 100, 60) $hButton_1 = GUICtrlCreateButton("Func1/Func2", 10, 10, 80, 40) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $hButton_1 If $func1 Then _Func_1() Else _Func_2() EndIf $func1 = Not $func1 EndSwitch WEnd Func _Func_1() MsgBox(1, "Func1", "This is Func 1") EndFunc ;==>_Func_1 Func _Func_2() MsgBox(1, "Func2", "This is Func 2") EndFunc ;==>_Func_2
    1 point
  11. DaleHohm

    IE data table dynamic

    You may not be allowing enough time for the table to repopulate after clicking next before you try to read it again. Try putting in a Sleep(xxx) to see if it solves your problem. If it does, then use a more sophisticated delay (you may be able to use _IELoadWait on the table or you may have to check it's content more directly). Dlae
    1 point
  12. To understand that you have to spend years studying http://msdn.microsoft.com/en-us/library/windows/desktop/ms644950(v=vs.85).aspx and a starter on WM_xxx messages http://msdn.microsoft.com/en-us/library/windows/desktop/ms644927(v=vs.85).aspx#system_defined Its much easier to use AutoIT commands or the IUIAutomationCore.DLL of Microsoft '?do=embed' frameborder='0' data-embedContent>>
    1 point
  13. Detefon, Declaring variables in a loop is going to affect execution time.
    1 point
  14. If you don't want the way AutoIt does it, what exactly DO you want then? You are, after all, posting on the AutoIt forums looking for help.
    1 point
  15. While looking for a file that I needed to edit I remembered this example that I made to crossfade 2 tracks. The ‘File Open’ dialog will open twice so as you get the 2 tracks, it will then play the last 35 seconds of the first track and after 10 seconds fade in the second track and fade out the first. You will find that some tracks have a different amount of silence at the beginning and end so you will need to adjust some values to suit your preference. Crossfade.au3
    1 point
  16. Melba23

    ControlSend problem

    232showtime, Delighted it worked - and I told you it was not a bug. M23
    1 point
×
×
  • Create New...