Jump to content

Altayr

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Altayr

  1. Hi all, been a while since I wrote any kind of code, but recently we are required to check differences between 3 groups, these should be identical, but since this is managed by the client of the application itself it most of the time isn't (who would suspect that) to compare the groups we used a tool, but this is an irritating work around, so I tried to write a small piece of code that just needs to run and will throw back an txt file with the differences. Below is the part I use to get all the members out of the groups, but I stumble upon a problem: all 3 groups contains well over 3000 members, by using the code below I get 3 arrays, all 3 are capped at 1500 entries. I can't pinpoint the reason why they are capped so I was hoping someone could tell me where it goes wrong and point me in the correct direction to avoid this issue #include <Array.au3> $array_Group1 = GetMembersInGroup("LDAP://CN=Group1,OU=Organisations,DC=example,DC=com") $array_Group2 = GetMembersInGroup("LDAP://CN=Group2,OU=Organisations,DC=example,DC=com") $array_Group3 = GetMembersInGroup("LDAP://CN=Group3,OU=Organisations,DC=example,DC=com") Func GetMembersInGroup($LDAP) MsgBox(0,"",$LDAP) Local $temp_array[0] $objGroup = ObjGet($LDAP) $objGroup.GetInfo $arrMemberOf = $objGroup.GetEx("member") For $strMember in $arrMemberOf $array = stringsplit($strMember, ",") $array2 = stringsplit($array[1],"=") _ArrayAdd($temp_array,$array2[2]) Next Return $temp_array EndFunc _ArrayDisplay($Group1) _ArrayDisplay($Group2) _ArrayDisplay($Group3)
  2. Thanks for all who tried to help, found the solution myself, had to change my registery entry in FF.au3 to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox\*CurrentVersion*\Main\PathToExe
  3. if i try to start with _FFStart(url) (no mather what url) i always get this error, how do i fix it? __FFStartProcess ==> General Error: Error reading registry entry for FireFox. HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\*CurrentVersion*\Main\PathToExe
  4. Amnael, I'm trying to build a bot for this too, so far i have a bot that when put on a certain spot kills the critters in the neighbourhood of the given type (or like said before colour) I recently did not find the time to build it further out, maybe we can share ideas/codes
  5. hi, how is the bot working out so far?
×
×
  • Create New...