mIRC Homepage
Posted By: mbot deleting files command - 13/01/04 02:25 PM
Hey.

I'm constructing a script at the moment, well, at least trying to and I have a few questions for it.

1: I want to make a script, that when unloaded deletes the files created. Fx. I make a .mrc file which when loaded makes and writes to eg. file.ini and file.txt. What I need it to do is deleteing the mentioned files when unloaded. Is this possible?...and if so, how?

2: I have had difficulties with getting the syntax of the code written to a file right. E.g. if I write following in a .mrc:

on *:load:{
write -a file.txt slaps $nick with a Nike size 15
}

Then "slaps "nick" with a Nike size 15" is written to the .txt, here "nick" being the primary nick of the client the script is loaded into. This is no good if the script is supposed to read from the .txt including variables. How can I make the script write "slaps $nick with a Nike size 15" to the .txt instead?
Any ideas, anyone?
Posted By: theRat Re: deleting files command - 13/01/04 02:40 PM
1. /help /remove
2.
on *:load:{
write -a file.txt slaps $!nick with a Nike size 15
}
Posted By: mbot Re: deleting files command - 13/01/04 04:41 PM
Hey.

Thanks, just what I needed...perhaps I should've read the help files thoroughly before posting. Again thx.

Another one while I'm at it. Making popups. Does this look right to you?

menu "location" {
-
.script
..menu1
..menu2
.script2
..menu3
..menu4
}

Where "location" could be channel, nicklist or query. But If I want to make a menu next to window and help e.g. What do I place there instead?
Posted By: MTec89 Re: deleting files command - 13/01/04 05:03 PM
you cant add to the mirc menu bar.
Posted By: mbot Re: deleting files command - 13/01/04 05:22 PM
Hey.
Are you absolutely certain?
Posted By: tidy_trax Re: deleting files command - 13/01/04 05:57 PM
there's probably a dll.
Reshack lets you do it wink
Posted By: Doqnach Re: deleting files command - 13/01/04 06:25 PM
there are several dll's which let you do this, but there is no default mIRC scripting function which gives you this ability
Posted By: mbot Re: deleting files command - 13/01/04 06:40 PM
Hey.

Fair enough, guess I'll have to live with that. Anyone who by chance has a link for me? smirk
Posted By: MTec89 Re: deleting files command - 13/01/04 06:47 PM
you cant edit mirc 6.1+ at all.
Posted By: mbot Re: deleting files command - 13/01/04 07:08 PM
Hey again.

Nevermind about the link. /me thinks he found it here.
© mIRC Discussion Forums