mIRC Home    About    Download    Register    News    Help

Print Thread
dll to mirc commands #96558 02/09/04 09:47 PM
Joined: Dec 2003
Posts: 261
M
milosh Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 261
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
Re: dll to mirc commands #96559 03/09/04 01:12 PM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
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!
Re: dll to mirc commands #96560 03/09/04 08:20 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.
Re: dll to mirc commands #96561 03/09/04 10:23 PM
Joined: Dec 2003
Posts: 261
M
milosh Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 261
Thank you much, friends.


velicha dusha moja Gospoda
Re: dll to mirc commands #96562 17/09/04 12:00 PM
Joined: Jan 2003
Posts: 249
C
ClickHeRe Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
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);
}

Re: dll to mirc commands #96563 17/09/04 11:45 PM
Joined: Dec 2003
Posts: 261
M
milosh Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 261
Thanx friend, and can you give me the example of using CreateFileMapping()?


velicha dusha moja Gospoda