Jump to content
Sign in to follow this  

Autoit + com events

Recommended Posts


i ave writen the following in VB.Net

<ComClass(core.ClassId, core.InterfaceId, core.EventsId)>
Public Class core
    Public Const ClassId As String = "790D4506-D57D-4E2D-935A-1CC02C4B7CB4"
    Public Const InterfaceId As String = "0568FCF5-248C-4853-AFC6-309A838EA978"
    Public Const EventsId As String = "E81585D3-D5C3-4344-A830-D18A54F6A64E"
    Public Sub New()
    End Sub
    Public Event AnEvent(test As String)
    Public Sub newevent(yourstring As String)
        RaiseEvent AnEvent(yourstring)
    End Sub
End Class

it works fine. however when i use objevent in autoit to hook AnEvent objevent sets @error to 1. where have i err'd

should it be called with Called with


<dllname>.core.AnEvent or


or have i written the VB.Net Event Wrong

All my projects live on github

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.