mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2004
Posts: 45
N
Navid Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Feb 2004
Posts: 45
The subject may not make much sense (hard to explain). But what I'm talking about is like including other files to the current script.mrc
in php we use <?php include("<filename.php")" ?> and it will input all the data in filename.php to the current one. just like an alias being use in the remote section.
is there a way to include other files with aliases and scripts to the one I'm scripting on right now?. blush

~Thanks

Last edited by Navid; 15/07/05 08:18 AM.
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
You cannot include a script file in another one with an include statement or something. However, you can use aliases that are defined in another script file, just as you would be able to use them from a status or channel window editbox.

You cannot use local aliases in another script file ofcourse:
alias -l mycommand {
mycode
}

So, the only reason for having includes would be that you can define local aliases in another script file. If you don't care about that then just use multiple separate script files and it will work just the same.

Joined: Dec 2002
Posts: 83
D
Babel fish
Offline
Babel fish
D
Joined: Dec 2002
Posts: 83
I think you can use the event on load to load specifically any file you want. For aliases, the better is to include in your mrc files. They worked the same.


Link Copied to Clipboard