mIRC Home    About    Download    Register    News    Help

Print Thread
#67664 13/01/04 02:25 PM
Joined: Jan 2004
Posts: 30
M
mbot Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jan 2004
Posts: 30
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?

#67665 13/01/04 02:40 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
1. /help /remove
2.
on *:load:{
write -a file.txt slaps $!nick with a Nike size 15
}


Code:
//if ( khaled isgod ) echo yes | else echo no
#67666 13/01/04 04:41 PM
Joined: Jan 2004
Posts: 30
M
mbot Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jan 2004
Posts: 30
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?

#67667 13/01/04 05:03 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
you cant add to the mirc menu bar.


http://MTec89Net.com
irc.freenode.net #MTec89Net
#67668 13/01/04 05:22 PM
Joined: Jan 2004
Posts: 30
M
mbot Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jan 2004
Posts: 30
Hey.
Are you absolutely certain?

#67669 13/01/04 05:57 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
there's probably a dll.
Reshack lets you do it wink


New username: hixxy
#67670 13/01/04 06:25 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
there are several dll's which let you do this, but there is no default mIRC scripting function which gives you this ability


If it ain't broken, don't fix it!
#67671 13/01/04 06:40 PM
Joined: Jan 2004
Posts: 30
M
mbot Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jan 2004
Posts: 30
Hey.

Fair enough, guess I'll have to live with that. Anyone who by chance has a link for me? smirk

#67672 13/01/04 06:47 PM
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
you cant edit mirc 6.1+ at all.


http://MTec89Net.com
irc.freenode.net #MTec89Net
#67673 13/01/04 07:08 PM
Joined: Jan 2004
Posts: 30
M
mbot Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jan 2004
Posts: 30
Hey again.

Nevermind about the link. /me thinks he found it here.


Link Copied to Clipboard