mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2004
Posts: 111
Z
Zeusbwr Offline OP
Vogon poet
OP Offline
Vogon poet
Z
Joined: Mar 2004
Posts: 111
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!

Joined: Jul 2005
Posts: 37
_
Ameglian cow
Offline
Ameglian cow
_
Joined: Jul 2005
Posts: 37
DLL files are probably the best way to get mIRC to interact outside of its own environment.

Joined: Jun 2004
Posts: 65
S
Babel fish
Offline
Babel fish
S
Joined: Jun 2004
Posts: 65
simple controle, DDE is best...otherwise...

/help COM Objects

Last edited by sdamon; 09/09/05 10:57 AM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2005
Posts: 116
I
Vogon poet
Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
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)"");

Joined: Aug 2005
Posts: 39
B
Ameglian cow
Offline
Ameglian cow
B
Joined: Aug 2005
Posts: 39
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

Joined: Sep 2004
Posts: 200
I
Fjord artisan
Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
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)

Joined: Mar 2004
Posts: 111
Z
Zeusbwr Offline OP
Vogon poet
OP Offline
Vogon poet
Z
Joined: Mar 2004
Posts: 111
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.


Link Copied to Clipboard