MiRC Script Loader

By SiNDAKiT on Mar 31, 2011

Screenshots

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
}

Comments

Sign in to comment.
[Plornt]   -  Mar 31, 2011

Does the halt work like that?

Doesnt look like it will due to it being outside the if statement.

 Respond  
Sorasyn   -  Mar 31, 2011

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.

 Respond  
BigSteve   -  Mar 31, 2011

thats all I wanted to know you have answered My question

 Respond  
SiNDAKiT   -  Mar 31, 2011

@Big Steve i really just made this for loading the mrc/txt/ini files into script editor in mirc

 Respond  
BigSteve   -  Mar 31, 2011

nice script does it open all files or just mrc and ini is my only question. rate 8/10

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.