frank10 Posted November 30, 2011 Share Posted November 30, 2011 I have a sniffing script that uses PacketX with Winpcap in W7. Const $PktXPacketTypePromiscuous = 0x0020 Const $PktXModeCapture = 1 ; # CREATE PACKETX OBJECT # Global $oPktX = ObjCreate("PktX.PacketX") If Not IsObj($oPktX) Then MsgBox(48, "Error", "PacketX could not load the object, reinstall!") Else $EventObject = ObjEvent($oPktX, "PacketX_") EndIf ; # GET THE DEVICE NUMBERS # $deviceno = "" $deviceitem = "" For $i = 1 To $oPktX.Adapters.Count If $oPktX.Adapters($i).IsGood Then $deviceitem = $i $deviceno = $deviceitem & "|" & $deviceno Else MsgBox(48, "Error", "No Valid Network Adaptors was found!") EndIf Next $oPktX.Adapter = $oPktX.Adapters(2) with official autoit 3.3.5.6 works well, but if I use the beta 3.3.7.21, the same script from Scite says cannot make that operation with this object: $oPktX.Adapter = $oPktX.Adapters(2) What's this? Link to comment Share on other sites More sharing options...
water Posted December 1, 2011 Share Posted December 1, 2011 Does it work with the latest production version 3.3.6.1? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
frank10 Posted December 1, 2011 Author Share Posted December 1, 2011 I tried 3.3.6.1, yes it works, it's only with Beta that doesn't work. Link to comment Share on other sites More sharing options...
water Posted December 1, 2011 Share Posted December 1, 2011 Do you have a COM error handler in your script? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
frank10 Posted December 1, 2011 Author Share Posted December 1, 2011 Before of that call to PacketX in my script I call Sqlite, some stdoutRead-Err call and this line: local $a = _CommSetPort($CMPort, $sportSetError, $CmBoBaud, $CmboDataBits, $CmBoParity, $CmBoStop, $setflow, $RTSMode, $DTRMode) of CommMG.au3 to initialize a serial port. I think I don't have COM error handler before calling PacketX. Link to comment Share on other sites More sharing options...
water Posted December 1, 2011 Share Posted December 1, 2011 Could you please insert the following code:$oMyError = ObjEvent("AutoIt.Error","MyErrFunc") ; Initialize a COM error handler ; ... Here goes the rest of your script ; This is my custom defined error handler Func MyErrFunc() Msgbox(0,"AutoItCOM Test","We intercepted a COM Error !" & @CRLF & @CRLF & _ "err.description is: " & @TAB & $oMyError.description & @CRLF & _ "err.windescription:" & @TAB & $oMyError.windescription & @CRLF & _ "err.number is: " & @TAB & hex($oMyError.number,8) & @CRLF & _ "err.lastdllerror is: " & @TAB & $oMyError.lastdllerror & @CRLF & _ "err.scriptline is: " & @TAB & $oMyError.scriptline & @CRLF & _ "err.source is: " & @TAB & $oMyError.source & @CRLF & _ "err.helpfile is: " & @TAB & $oMyError.helpfile & @CRLF & _ "err.helpcontext is: " & @TAB & $oMyError.helpcontext _ ) EndfuncThis grabs all COM errors and for each a MessageBox is shown. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
frank10 Posted December 1, 2011 Author Share Posted December 1, 2011 I will try it in two or three hours. Link to comment Share on other sites More sharing options...
frank10 Posted December 1, 2011 Author Share Posted December 1, 2011 The COM handler says: description: impossible to find member (I translate it from italian 'membro') err.numb: 80020003 lastdll: 0 help: 43237768 Link to comment Share on other sites More sharing options...
water Posted December 1, 2011 Share Posted December 1, 2011 Do you get the COM error on the same line as the error in your first post? Sometimes the problem is located many lines above the line crashing the script.Did you have a look at the of the 3.3.7.21 version? COM support has changed and there might be some script breaking changes. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
frank10 Posted December 1, 2011 Author Share Posted December 1, 2011 For the latest test I made a script with only that part I posted above. So, yes the line of the error is the same: $oPktX.Adapter = $oPktX.Adapters(2) and there are no other things except call to PacketX Link to comment Share on other sites More sharing options...
water Posted December 1, 2011 Share Posted December 1, 2011 Then I think it's time to ask one of the Devs. Or install one of the older 3.3.7.x betas (i would start with 3.3.7.0). If it works with one of the 3.3.7.x betas you know that there might be a bug in 3.3.7.21. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
frank10 Posted December 1, 2011 Author Share Posted December 1, 2011 At this point I can use the 3.3.5.6, I don't need the beta now. It could only be useful for the devs to know there is a bug. And in the future, if the beta will became official... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now