Can I do this with a DLL?

Blake81

Well-known member
Joined
Feb 23, 2006
Messages
304
Location
Georgia, USA
Programming Experience
1-3
I've mentioned working on an admin console before for mIRC. I put that aside for awhile, but I recently decided to see if I can use a DLL to do what I want. I'm starting small as a test. If I have a class library with a form that has a textbox and a button, is there a way to somehow send what I've typed to the mIRC script after I hit the button? The only DLLs I've made for mIRC pass a string and immediately get a value back. I'm not sure how to code this so that it doesn't return anything until I type and click the button. I know I can open a COM connection and use the result in a script, because I've done that, but the thing with this project is being able to wait until I've typed. I hope you understand what I'm trying to do. Thanks for any help.

I've seen references to SendKeys. How does that work? Can I send text and commands to a specific mIRC window?
 
Last edited:
Blake81 said:
If I have a class library with a form that has a textbox and a button, is there a way to somehow send what I've typed to the mIRC script after I hit the button?
If you show the form as a dialog the code won't continue until you have dismissed the dialog, and the function method won't return a value until it is finished. formInstance.ShowDialog() is the code.
 
Thanks. I've been testing things with that idea and trying to come up with a way to do this. That's pretty close to what I want, except I need to be able to have the DLL communicate with mIRC at any time. Would there be any way to keep constant communication with mIRC so that my VB application can kick/op someone at any time? The COM connection would open at start but would close after I use it the first time. I'd also like to be able to keep the form open because it would have lists of users and channels on my IRC server. Thanks for any suggestions. This is turning out to be a little tricky.
 
Back
Top