I'm trying to eventually write a DLL that will implement webcam functionality in mIRC. For now, I'm just trying to test to see if I can change the text of a label on a VB form from mIRC. I'm pretty new to VB, so I'm not sure how to go about writing the code to do that. I could have made a mistake here. I can open the COM connection, but when I run the alias to change the label, it returns 1 (which means it thinks it was successful, right?) but the label text doesn't change. Any help would be appreciated from anyone who knows VB. Here's my VB code and the mIRC alias:
VB
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Default Property SetLabel(ByVal labeltext As String) As String
Set(ByVal value As String)
Label1.Text = labeltext
End Set
Get
Label1.Text = labeltext
End Get
End Property
End Class
mIRC
/testcom {
var %a = hello
$com(test,SetLabel,3,bstr %a,*dispatch set)
echo -a $com(test).result
}