mIRC Home    About    Download    Register    News    Help

Print Thread
sending message to channel #127354 12/08/05 06:47 PM
Joined: Aug 2005
Posts: 1
G
gbrenson Offline OP
Mostly harmless
OP Offline
Mostly harmless
G
Joined: Aug 2005
Posts: 1
Is there a way to enter a message in a active channel through a program or from DOS?

Regards, GB

Re: sending message to channel #127355 12/08/05 08:15 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
It could possibly be done with Com Objects, look for a tutorial on mIRCScripts.org if you don't know how COM Objects work or maybe the experienced coders here will give you some examples or pointers. smile

-Andy

Re: sending message to channel #127356 12/08/05 08:57 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
To communicate to mIRC from your application you can use dde or sendmessage. For information on both, and how to communicate with mIRC, check the help file.

/help dde
/help sendmessage

COM will be of no help for you, since COM is called from within mIRC whilst you want to communicate from an external program to mIRC. No you cannot communicate from DOS to mIRC. It is possible with COM to communicate with DOS, and return information from DOS to mIRC, but that means all code is processed on mIRC's side. That doesnt' seem to be what you're asking. You want to use a command in DOS and want it to appear in mIRC I suppose? That can't be done.

Note that the dde and sendmessage tips are for when you are developing an application, and wish to be able to communicate with mIRC. Obviously you cannot communicate with mIRC with an application that does not support this kind of features.

If you can program, which I assume you can, you can create a DLL, which can act as the intermediary between your application and mIRC, if for some reason dde and sendmessage are not sufficient for you.


Gone.