mIRC Home    About    Download    Register    News    Help

Print Thread
Application to mIRC communication #176833 14/05/07 09:53 PM
Joined: May 2007
Posts: 10
M
Masterkiller Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: May 2007
Posts: 10
I generally work in win32 (not MFC) in C++. I wonder if there is a way my program communicate with mIRC, forcing it to execute a script command. I know about DLL support, but in this way mIRC call the DLL and using FindWindow() send message to my program (in that way works mircamp.dll), then my program return a value, and returning '3' (int) it passes to the remote script. What if my program need to execute script command? (for example, my program is closed in some time and need to notify the mirc about that).

Re: Application to mIRC communication [Re: Masterkiller] #176836 14/05/07 10:10 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I've not used these much, but this sounds like a situation where COM Objects would be used.

Re: Application to mIRC communication [Re: Masterkiller] #176846 14/05/07 10:35 PM
Joined: Apr 2004
Posts: 841
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 841
Use the SendMessage API that mIRC offers - see /help sendmessage


Saturn, QuakeNet staff
Re: Application to mIRC communication [Re: Sat] #177094 19/05/07 07:54 PM
Joined: Apr 2003
Posts: 342
M
MeStinkBAD Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
Screw sendmessage! Add some COM support! Sheesh...


Beware of MeStinkBAD! He knows more than he actually does!
Re: Application to mIRC communication [Re: MeStinkBAD] #177115 20/05/07 12:48 AM
Joined: Apr 2004
Posts: 841
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 841
Okay smartass, how about you show us how to execute a command in mIRC from another program, using COM objects?


Saturn, QuakeNet staff
Re: Application to mIRC communication [Re: Sat] #177116 20/05/07 12:56 AM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
I think he meant that COM support should be added to mIRC. Although his post was pretty vague..

Re: Application to mIRC communication [Re: Masterkiller] #177129 20/05/07 12:54 PM
Joined: May 2007
Posts: 10
M
Masterkiller Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: May 2007
Posts: 10
10x a lot for help. It should be good idea, to update mIRC API to accept WM_COPYDATA message for executing script commands requested from another application. It is easier for developers than COM, and faster than passing script by file.