mIRC Home    About    Download    Register    News    Help

Print Thread
#108016 16/01/05 07:13 AM
F
Fantas
Fantas
F
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
D
DaveC
DaveC
D
menu @win {
message : { msg $* message }
}

#108018 16/01/05 10:14 AM
F
Fantas
Fantas
F
Thanks Dave that worked great

#108019 08/03/05 02:15 PM
F
Fantas
Fantas
F
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