mIRC Homepage
Posted By: milosh dll to mirc commands - 02/09/04 09:47 PM
I have a question about dll made for mirc.
If I want to send a command to mirc script from my dll, all I have to do is to set data var to <command> and set Result var to 2.
But... what if I want to send two or more commands to mirc script from the same function? How can I do that?
Thanx!

Note: I can understand Delphi and VB examples only (if any are given). blush shocked
Posted By: Doqnach Re: dll to mirc commands - 03/09/04 01:12 PM
mmmm think you will need to create a single alias in mIRC which has those commands...

don't know if | would work, never tested it...
Posted By: starbucks_mafia Re: dll to mirc commands - 03/09/04 08:20 PM
If they will fit on one line then you can use pipes, I'm sure I remember doing that in the past. If not then you'll have to use SendMessage() (/help SendMessage).
Posted By: milosh Re: dll to mirc commands - 03/09/04 10:23 PM
Thank you much, friends.
Posted By: ClickHeRe Re: dll to mirc commands - 17/09/04 12:00 PM
Here are 2 functions that may be usefull

// Send a command
void mIRCcom(char *data) {

lstrcpy(mData,data) ;
SendMessage(mIRC_hwnd, WM_USER + 200,0,0);
}

// Evaluate an expression
void mIRCeval(char *text, char *res) {

lstrcpy(mData,text);
SendMessage(mIRC_hwnd, WM_USER + 201,0,0);
lstrcpy(res,mData);
}
Posted By: milosh Re: dll to mirc commands - 17/09/04 11:45 PM
Thanx friend, and can you give me the example of using CreateFileMapping()?
© mIRC Discussion Forums