mIRC Home    About    Download    Register    News    Help

Print Thread
#223149 15/07/10 08:20 PM
Joined: Jun 2010
Posts: 7
M
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.

Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
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
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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>

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard