i made this cos sometimes i have a vps and run mirc on that and cant get to the script tab up top to load the scripts or unload them so i made this to do that for me.
just for anyone wanting to know its simple and thats it really
on 1:LOAD:/echo SCRiPT LOADER LOADED !!!!
on 1:UNLOAD:/echo SCRiPT LOADER UNLOADED !!!!
menu channel,status {
.Script-Loader
..Loader:loadscript
..Unloader:unloadscript
}
alias loadscript {
set %loadscript $sfile(open)
if (%loadscript == $null) { //echo -a NO SCRIPTS WERE PICKED TO LOAD !! } halt
//load -rs %loadscript
unset %loadscript
}
alias unloadscript {
set %unloadscript $sfile(open)
if (%unloadscript == $null) { //echo -a NO SCRIPTS WERE PICKED TO UNLOAD !! } halt
//unload -rs %unloadscript
unset %unloadscript
}
I am yet to test and give it the "A ok", but just glancing at it, I'd say it might be easier to use the unloader if it showed what scripts were loaded so we know whats currently on and whats not.
Another tip for $sfile() is you can choose the base file path for it instead of opening up and displaying C:/ you could specify it to display the $mircdir or $scriptdir instead.