mIRC Home    About    Download    Register    News    Help

Print Thread
$fserv and $chat Missing Feature? #1523 13/12/02 09:52 PM
Joined: Dec 2002
Posts: 9
A
accessx Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Dec 2002
Posts: 9
I ran into this problem,
I have One Fserve Window Open Serving NickA and I have a DCC chat Window open with NickA, $chat(0) returns 1 and $fserv(0) returns 1, $chat(1) returns NickA and so does $fserv(1), so how do I send a /msg to NickA on to the DCC chat window? /msg =NickA will send it to the first open DCC window..

Re: $fserv and $chat Missing Feature? #1524 13/12/02 10:03 PM
Joined: Dec 2002
Posts: 339
F
FunChatter Offline
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 339
Streight from the helpfile:

$fserv(N/nick,[N])
Returns the name of the Nth open dcc chat window.

Properties: ip, status, cd

$fserv(0) returns the total number of open fserves
$fserv(1) returns the nickname of the 1st fserve
$fserv(1).cd returns the current directory of the 1st fserve

If you specify a nick and N, it will return info on the Nth window for that nick.

/help $chat



Re: $fserv and $chat Missing Feature? #1525 13/12/02 10:06 PM
Joined: Dec 2002
Posts: 164
M
Merlin Offline
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 164
//echo -a $chat(0) returns the number of open DCC chats
If you have 2 chats open you can to this
Code:
//msg $+(=,$chat(1)) test1
//msg $+(=,$chat(2)) test2
 

This works the same way with $get, $send and $fserv


DALnet: #HelpDesk, #mIRC, #MISHScript - Undernet: #mIRC, #mIRC-Scripts
Re: $fserv and $chat Missing Feature? #1526 13/12/02 10:10 PM
Joined: Dec 2002
Posts: 9
A
accessx Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Dec 2002
Posts: 9
$chat(0) only sees the 1 DCC chat window..
$fserv(0) only sees the 1 Fserve Window.. Both identifiers return the same nick because the nick is in my DCC chat and my Fserve Window.

Both $chat(1) and $fserv(1) returns the same nick..

See I'm serving NickN on my Fserve
And Chatting With NickN on a separate DCC Chat window..
/msg =Nickn will only send the message to the first open DCC window, in this case The Serve Window gets the message because it was the first open. I want to direct all my msg's to NickN's DCC chat window while the serv window with NickN is open.

Last edited by accessx; 13/12/02 10:19 PM.
Re: $fserv and $chat Missing Feature? #1527 13/12/02 10:26 PM
Joined: Dec 2002
Posts: 208
C
Cobra Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 208
i see what your saying, although i dont have a solution for you...

realy i'm a bit suprized that mirc alowed you to creat the dcc chat window while having an fserv window open .. unfortuantly i dont have the ability to do any testing right now to try to find a work around ..

i know there is a queryrn command but i doubt it works for dcc chats .. if it did though u could rename the dcc chat window ..

unless someone else knows somethign i dont u might wana put this in the bug reports section.

Cobra^

Re: $fserv and $chat Missing Feature? #1528 13/12/02 10:38 PM
Joined: Dec 2002
Posts: 164
M
Merlin Offline
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 164
Lets clear out a few things:
Basically: FSERVE and CHAT, are the same thing. and /msg =NICK is how you msg both types of events.
You are trying to figure out how mIRC can msg both since it always msg'd the FIRST window - ie) you have Chat, Fserve - /msg =nick will ONLY msg the chat window, and vice versa.
Since mIRC ALLOWS this connection - the only way would be to find out which "port"/"wid" each of the connection uses. mIRC currently does not support this feature.
So what you have to do, is find out (or script it) in which order those DCC connections are opened. then you might be able to address the right window - but not both.

Last edited by Merlin; 13/12/02 11:22 PM.

DALnet: #HelpDesk, #mIRC, #MISHScript - Undernet: #mIRC, #mIRC-Scripts
Re: $fserv and $chat Missing Feature? #1529 13/12/02 11:02 PM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
The basic principal in a solution would lie in the fact that mIRC is general EVENT driven. For Example:

(&) Text said in a Dcc Chat, would be triggered ON CHAT, and you would then use /msg =$nick inside that and mIRC would automatically know where to send it, and vice versa the same is true of ON FSERV.

The problem would arrise however when both Chat and Fserv were open and you were calling /msg = from anywhere other than the on chat/fserv events.

Perhaps a better way of differing from chat and fserv should be thought of in later versions.

Re: $fserv and $chat Missing Feature? #1530 13/12/02 11:08 PM
Joined: Dec 2002
Posts: 208
C
Cobra Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 208
Merlin is reporting the bug and it can be asumed that some arangment will be made for later versions

i have a few ideas on ways to solve this problem but we will let Khaled deside on that :P

Cobra^