mIRC Home    About    Download    Register    News    Help

Print Thread
Simplest way to communicate with another appl.? #239917 04/12/12 03:06 PM
Joined: Nov 2011
Posts: 23
Q
Quinch Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Nov 2011
Posts: 23
Er, hello. I'm hammering out an application in C# to essentially act as a bot, and I'm wondering, what would be the best way to send any and all text output from mIRC to it for processing?

Fair warning, I am completely inexperienced in mIRC scripting, and almost completely so in programming in general - this is my learn-by-doing project, so feel free to assume you need to spell things out for my ignert self to understand. So far I've resorted to monitoring and reading log files - probably one of the worst available ways to do it.

Last edited by Quinch; 04/12/12 03:15 PM.
Re: Simplest way to communicate with another appl.? [Re: Quinch] #239924 05/12/12 10:01 AM
Joined: Mar 2010
Posts: 144
Masoud Offline
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 144
Well, I guess the easiest way would be:
In mIRC, write your messages into a file and by using a FileSystemWatcher in C# you can monitor the file and read it :P


Nothing...
Re: Simplest way to communicate with another appl.? [Re: Quinch] #239926 05/12/12 11:17 AM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
If it's going to be a bot, why not just have it connect to the network and then it will receive all channel messages directly?


Invision Support
#Invision on irc.irchighway.net
Re: Simplest way to communicate with another appl.? [Re: Quinch] #239936 05/12/12 08:29 PM
Joined: Sep 2005
Posts: 2,878
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,878
Sockets would probably be the most efficient way within the constraints of mIRC.

Correct me if I'm wrong anyone!