mIRC Home    About    Download    Register    News    Help

Print Thread
Load All Command #223149 15/07/10 08:20 PM
Joined: Jun 2010
Posts: 7
M
Muffinator Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jun 2010
Posts: 7
My suggestion is simple, a command, such as /loadall or /load -all to load all scripts in a certain directory, rather than an individual file. This would make it easier to load groups of downloaded scripts, reload unloaded scripts, etc.

Re: Load All Command [Re: Muffinator] #223150 15/07/10 08:41 PM
Joined: Apr 2010
Posts: 921
F
FroggieDaFrog Online
Hoopy frood
Online
Hoopy frood
F
Joined: Apr 2010
Posts: 921
but then think of the exploits that could be caused from it. :\ The reason mIRC is setup to load ONE script at a time is so that the user knows what is being loaded.


I am SReject
My Stuff
Re: Load All Command [Re: Muffinator] #223151 15/07/10 08:43 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
How is mIRC supposed to know which files are scripts? If it loads all .ini/.mrc files, that could quite easily load settings files (.ini is often used to store settings). If mIRC decided to read from each file to try to determine if it is a script, that would be quite slow to process if there are a lot of scripts in a directory.

I really think this is a case where it should be left up to the scripter:

Code:
alias loadall noop $findfile($1-,*.mrc,0,load -rs $qt($1-))


/loadall <dir>

Re: Load All Command [Re: Muffinator] #223152 15/07/10 08:44 PM
Joined: Jul 2006
Posts: 3,559
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,559
Quite impossible, there's no way to say if a file is a script or not.

edit : hixxy beat me

Last edited by Wims; 15/07/10 08:45 PM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Load All Command [Re: Muffinator] #223154 15/07/10 09:38 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Although I don't think we necessarily need a command to load multiple scripts, I would like to see the ability to use the Alt-R > File > Load dialog to load multiple files that are selected.


Invision Support
#Invision on irc.irchighway.net
Re: Load All Command [Re: Riamus2] #223156 15/07/10 09:46 PM
Joined: Jul 2006
Posts: 3,559
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,559


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net