KFL42 0 Posted June 1, 2010 Hallo, I'm trying to automate one of our ERP-Applications, which includes an OLE / COM Interface (late bindung). Until now, this work was done with VBA and/or VBScript and it works fine. Since I'm an enthusiastic fan of AutoIt, I want to do this work with AutoIt instead of VBA / VBS. But there is a strange problem with using some of the methods of that application object in oppostion to using them with vba / vbs. If this methods are used, I get the following COM-Object error: 80020003, Member not Found. Im folgenden habe ich mal ein Beispiel-Skript aufgelistet: Here is an example: ------------------------------------ Local $oHWP Local $wert Local $i $oHWP = ObjCreate ("HWP.Anwendung") if ($oHWP.Angemeldet = 0) Then ; works (checks if logged in) $oHWP.Anmelden ("USER","PASSWORD") ; works not: "COM-Error 80020003, Member not found" endif $wert = $oHWP.Version ; works (get the version number) $wert = $oHWP.Table("ADR").Anzahl ; works (get the number of address contacts) $oHWP.Table("ADR").ErsterSatz ; works not: "COM-Error 80020003, Member not found" (go to first record) For $i = 1 to $wert MsgBox (0, "Information", $oHWP.Table("ADR").Feld("Nummer")) ; works $oHWP.Table("ADR").NaechsterSatz ; works (go to next record) Next $oHWP = 0 Exit ------------------------------------ All error codes are determined by standard error handling of AutoIt ($oMyError = ObjEvent("AutoIt.Error","MyErrFunc") etc.), which was omit for the reason of clarity of code. Remember: all methods of the application objects works fine while using VBA / VBS. Therefor the software vendor says that his application and its COM-Interface (Type: late bindung) is in proper style and it must be an problem with AutoIt. Now the Questions: Are there any specifics or tricks of AutoIt for using COM-Objects? Thanks in advance for any suggestions. With best regards, Frank Share this post Link to post Share on other sites