vb zu autoit

  • hallo
    wie kann ich das

    [autoit]

    Set dso = GetObject("LDAP:")
    Set ou = dso.OpenDSObject("LDAP://10.89.1.2:3268/dc=tomtec,dc=org", _
    "UEffinger", "geheim", 1)
    wscript.echo "Hallo"
    'For Each obj In ou
    ' WScript.Echo obj.name
    'Next

    [/autoit]


    Vb script in autoit ändern ?

  • Wie wäre es mal mit sowas:

    [autoit]

    $obj = ObjGet("LDAP:")
    If IsObj($obj) THen
    $ou = $obj.OpenDSObject("LDAP://10.89.1.2:3268/dc=tomtec,dc=org", _
    "UEffinger", "geheim", 1)
    MsgBox(0,"","Hallo")

    [/autoit][autoit][/autoit][autoit]

    For $obj In $ou
    MsgBox(0,"ObjectName",ObjName ($obj)
    Next
    Else
    MsgBox(16,"Error","No obj...")
    EndIf

    [/autoit]

    Ich übernehm dafür keine Garantie ;) Besonders nicht für die For...In..Schleife

    Btw: Bei mir dauert es bissl bis er das Objekt hat...Aber bei dem OpenDSObject ist anscheinend was falsch...

    MfG,
    FaNtA

    Einmal editiert, zuletzt von XxXFaNtA (6. Februar 2007 um 23:27)