mIRC Home    About    Download    Register    News    Help

Print Thread
#108016 16/01/05 07:13 AM
Joined: Dec 2002
Posts: 79
F
Fantas Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
Hi. i have a custom window that lists nicks in order, that part works fine and i can highlight one or all. my problem is how to send a command to all at once. individually each selected nick is $1 and if 2 are highlighted they become $1 and $2.
i don't want to have to write
menu @win {
message {
msg $1 message
msg $2 message
msg $3 message
}
}
any ideas? oh and no it's not for spam thats just an example

#108017 16/01/05 07:17 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
menu @win {
message : { msg $* message }
}

#108018 16/01/05 10:14 AM
Joined: Dec 2002
Posts: 79
F
Fantas Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
Thanks Dave that worked great

#108019 08/03/05 02:15 PM
Joined: Dec 2002
Posts: 79
F
Fantas Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
Ok next part. I can message as many in window as i want but i want to either halt or skip over ones i have in a trusted text file and do the rest. This is what i have
test : {
if ($1 isin $read(trusted.txt,w,$+(*,$1,*))) { echo -a $1 is a trusted nick, try again | halt }
else { scon 1 msg $* test 1 $(|) msg $* test 2 }
}

this works fine if i select one nick at a time. However if i select 2 or more it mesages all even if one is in the text file
any ideas? .


Link Copied to Clipboard