mIRC Homepage
Posted By: Zeusbwr mIRC Communication, External Programs? - 09/09/05 12:23 AM
Ok, simple put. Which is a good fast way to have mIRC communicate with an external program. (External being not mIRC)

Its been almost 2 years since i've even used mIRC (been away from computers), so for a fun little side project i am going to code a Bot in C# and i need to make mirc simply relay any events it has to the program, and the program vis versa. ( events, & data such as text, etc.)

So ya, Been a long time, but is it DDE that is the best option? Like, if you wanted mIRC to send one simple string to an external program, how would you go about doing such a task?

Thanks to any replies!
Posted By: _dood_ Re: mIRC Communication, External Programs? - 09/09/05 01:02 AM
DLL files are probably the best way to get mIRC to interact outside of its own environment.
Posted By: sdamon Re: mIRC Communication, External Programs? - 09/09/05 10:56 AM
simple controle, DDE is best...otherwise...

/help COM Objects
Posted By: Riamus2 Re: mIRC Communication, External Programs? - 09/09/05 01:36 PM
As mentioned...

If you're trying to program something in C++ and you want it to run from mIRC, DLL is the way to go. Otherwise, you can use the DDE and COM options for programs you're not writing.
Posted By: Im2good4u Re: mIRC Communication, External Programs? - 09/09/05 04:39 PM
in actualy writing somethingj sut like u laugh

ingameirc for irc inside rtcw / et / q3 and other q3 games if i get the info's

i didnt write the q3 engine console but u can parse the info of the hwnd process

the main this is i use the sendmessage on the edit field of the q3 engine
Code:
#include <windows.h>
//sending text
	// send every char
	for (int i=0;i<length;i++) SendMessage(hwnd,WM_CHAR ,command[i],1);

	// and the CR 
	SendMessage(hwnd,WM_CHAR ,13,1);

//reading text
	SendMessage(hwnd,WM_GETTEXT ,(WPARAM)sizeof(console),(LPARAM) console);
//clearing conosle
	SendMessage(hwnd,WM_SETTEXT ,(WPARAM)NULL,(LPARAM)"");
Quote:
Its been almost 2 years since i've even used mIRC (been away from computers),


have you been in prison? if so, go away! smile
Posted By: IR_n00b Re: mIRC Communication, External Programs? - 09/09/05 07:23 PM
It's probly just school/collage/ect, since im starting school, i find myself using computers less :s (first, 6 hours off the day, then around 1 more hr for homework, and 40 minutes to walk to school and back for me :< thats 7:40, i still have some time, but not as much)
Posted By: Zeusbwr Re: mIRC Communication, External Programs? - 12/09/05 05:15 AM
well i decided i'd go with C#, little less time consuming.

However that also limits me in some fields. I think i'll goof with actually socketing all the messages, see what happends. I'll test both UDP & TCP communication, if it works fast enough ( and at all ) it will be a lot less time consuming.
© mIRC Discussion Forums