mIRC Script Editor Reloader

By Arigateaux on Jan 12, 2012

I did this because I use an external program in which to write my scripts. I like the feature that mIRC already has to "Monitor File Changes", but I got annoyed with the consistent "Would you like to initilize this script?" pop-up that came up every time I saved my file. After some suggestions on how to go about this, this is what I've created.

I hope it works as well for you as it does for me. :)

NOTE: If there are any bugs, please feel free to let me know.

on *:start:{
  scriptReload
  .timer 0 10 scriptReload
}

alias scriptReload {
  var %i = $script(0)
  if !$hget(scriptReloader) {
    while %i {
      hadd -m scriptReloader %i $md5($script(%i),2)
      dec %i
    }
    continue
  }
  else {
    while %i {
      var %oldHash = $hget(scriptReloader,%i), %newHash = $md5($script(%i),2), %script = $script(%i)
      if %oldHash != %newHash {
        .timer 1 0 .reload -rs $qt(%script)
        hadd -m scriptReloader %i %newHash
      }
      dec %i
    }
  }
}

Comments

Sign in to comment.
Arigateaux   -  Jan 13, 2012

Well, like I said, I tried all that and none of it worked. That's the reason I made this script. I'm running 7.22 and idk why it won't work. D:

 Respond  
Abcdefmonkey   -  Jan 12, 2012

Yeah.. What LuminolBlue said. Lol. Alt + R -> Options -> Untick Initialization Warnings

Works just fine for me. They're annoying. Lol. Nice script either way.

 Respond  
Arigateaux   -  Jan 12, 2012

Seriously, I've tried. I can't get anything to shut it off.

 Respond  
LuminolBlue   -  Jan 12, 2012

You can actually turn the initialization warnings off in mIRC.

 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.