mIRC Home    About    Download    Register    News    Help

Print Thread
#9496 03/02/03 07:27 PM
Joined: Dec 2002
Posts: 9
M
mIRCd Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Dec 2002
Posts: 9
ok, im trying to make a playlist editor thing for my mp3 player and have got it working that when you select a file to add it writes the fullpath and filename to a file called list.txt

after getting this all working i decided to try to get it working to delete the line of text with the path and filename... but came across a problem... it doesnt work

ive tried using the following bits:

on *:dialog:m:dclick:15: {
set %mp3 $did(15).seltext
.timerUPDATEmp3 0 1 update.pbar
}

and then as part of another on dialog event:
if ($did == 21) {
write -ds $+ %mp3 list.txt
}

but alas nothing.... i even tried
write -ds $+ $did(15).seltext list.txt

so can anyone help me out... thanks!!!


----=====(((ChRiS)))=====-----
#9497 03/02/03 07:39 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
If the text is more than one word, it must be enclosed by quotes
Code:

write -ds[color:red]"[/color] $+ %mp3 $+ [color:red]"[/color] list.txt

#9498 03/02/03 09:26 PM
Joined: Dec 2002
Posts: 9
M
mIRCd Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Dec 2002
Posts: 9
Thankyou very much!!! grin works fine now


----=====(((ChRiS)))=====-----

Link Copied to Clipboard