mIRC Home    About    Download    Register    News    Help

Print Thread
#111515 16/02/05 10:29 AM
Joined: Feb 2005
Posts: 34
K
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Feb 2005
Posts: 34
Ok... so i have an mp3 player and an away system, i made seperate dialogs that allow me to add channels to a listbox, and the listbox gets saved into a .txt file... the purpose of the the dialog is so I can select what channels I want the mp3 info and away info to go to. But i'm having trouble getting the information to send to those specific channels. I'd appreciate if could tell me how i can get it to read from the text files and display only to those channels.


Thanks,

arkt1k

#111516 16/02/05 10:42 AM
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
i dont know ive read it right but do something like this

assuming the text file is like this:
#channel1
#channel2
#channel3
#etc

alias advchan {
var %xs = 1
while (%xs <= $lines(textfilehere.txt)) {
msg $read(textfilehere.txt,%xs) your message here
inc %xs
}
}


$maybe
#111517 16/02/05 07:36 PM
Joined: Feb 2005
Posts: 34
K
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Feb 2005
Posts: 34
Oh thanks, for some dumb reason I had the while statement like %xs >= $line ... ect.


Thanks again!


Link Copied to Clipboard