mIRC Home    About    Download    Register    News    Help

Topic Options
#96558 - 02/09/04 10:47 PM dll to mirc commands
milosh Offline
Fjord artisan

Registered: 24/12/03
Posts: 261
Loc: Srbija
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
_________________________
velicha dusha moja Gospoda

Top
#96559 - 03/09/04 02:12 PM Re: dll to mirc commands
Doqnach Offline
Hoopy frood

Registered: 18/01/03
Posts: 1063
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...
_________________________
If it ain't broken, don't fix it!

Top
#96560 - 03/09/04 09:20 PM Re: dll to mirc commands
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
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).
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#96561 - 03/09/04 11:23 PM Re: dll to mirc commands
milosh Offline
Fjord artisan

Registered: 24/12/03
Posts: 261
Loc: Srbija
Thank you much, friends.
_________________________
velicha dusha moja Gospoda

Top
#96562 - 17/09/04 01:00 PM Re: dll to mirc commands
ClickHeRe Offline
Fjord artisan

Registered: 29/01/03
Posts: 249
Loc: Ottawa, Canada
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);
}
_________________________
David

DCX - Dialog Control eXtension

Top
#96563 - 18/09/04 12:45 AM Re: dll to mirc commands
milosh Offline
Fjord artisan

Registered: 24/12/03
Posts: 261
Loc: Srbija
Thanx friend, and can you give me the example of using CreateFileMapping()?
_________________________
velicha dusha moja Gospoda

Top