PNT Posted December 15, 2005 Posted December 15, 2005 (edited) Hi I have detailed below a simple vb program which is part of a vb.exe . I wish to use in a vb script which I can use in some HA software.My question is how can I query the dll without the module?module codeOption ExplicitDeclare Function Initreceivep6 Lib "socket.dll" Alias "receivep6" () As LongDeclare Function Datatransfer Lib "socket.dll" Alias "transfer" (ByVal variable As Long) As LongDeclare Function Setdata Lib "socket.dll" Alias "setdata" (ByVal variable As Long) As LongDeclare Function Cleandata Lib "socket.dll" Alias "cleandata" (ByVal variable As Long) As LongDeclare Sub Setip Lib "socket.dll" Alias "setip" (ByVal variable As String)vb form codeOption ExplicitDim IpsetPrivate Sub Command10_Click()Command10.Visible = FalseCommand18.Visible = TrueLabel1.Visible = TrueIpset = Setdata(&H40)Ipset = Datatransfer(Ipset)End SubPrivate Sub Command11_Click()Command11.Visible = FalseCommand19.Visible = TrueLabel2.Visible = TrueIpset = Setdata(&H80)Ipset = Datatransfer(Ipset)End SubPrivate Sub Command18_Click()Command10.Visible = TrueCommand18.Visible = FalseLabel1.Visible = FalseIpset = Cleandata(&HBF)Ipset = Datatransfer(Ipset)End SubPrivate Sub Command19_Click()Command11.Visible = TrueCommand19.Visible = FalseLabel2.Visible = FalseIpset = Cleandata(&H7F)Ipset = Datatransfer(Ipset)End SubPrivate Sub Form_Load()Dim P6Setip "192.168.1.25"P6 = Initreceivep6If (P6 And &H40) Then Command10.Visible = False Command18.Visible = True Setdata (&H40)'value =64Else Command10.Visible = True Command18.Visible = False Cleandata (&HBF)End IfIf (P6 And &H80) Then Command11.Visible = False Command19.Visible = True Setdata (&H80)Else Command11.Visible = True Command19.Visible = False Cleandata (&H7F)End IfIf (P6 And &HB40) Then Label1.Visible = TrueElse Label1.Visible = False Cleandata (&HBF)End IfIf (P6 And &HB80) Then Label2.Visible = TrueElse Label2.Visible = False Cleandata (&H7F)End IfEnd SubI wish to remove need for graphics and in the vb script use SetPropertyValue() fed to a device in the program.ie If (P6 And &HB80) ThenSetPropertyValue(X) Any ideas anyone Edited December 15, 2005 by PNT
EchoNoise Posted December 15, 2005 Posted December 15, 2005 if you have vb.net you can incorporate that into a console based program, and then call it so it doesn't show...
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