Hi Khaled,

Not sure if this is a bug, but I figured I'd let you know about this behaviour. I've known for quite some time that it is difficult to work with a new script file in the remote editor when PnP (Peace and Protection) scripts are loaded. If you click on File > New, in a couple of seconds the remote editor tab switches focus from Remotes to Users, preventing you from working with a new script file. (or save it)

PnP has an internal timer running and takes action if (*last.mrc !iswm $script($script(0)) and then proceeds to reload that file at the end.

Basically, to replicate, in a new mirc environment, try the following steps:

1. You have this in remote.ini: (basically make sure remote.ini exists in the scripts\ directory and is the only script file loaded)

Code
alias hw echo -a Hello World!


2. Add this content to aliases.ini:

Code
_timer.on .timer.internal -io 0 10 _internal.timer
_internal.timer {
  if (*remote.ini !iswm $script($script(0))) _screload
}
_screload {
  if ($exists(scripts\remote.ini) == $false) halt
  echo 4 -a Script load detected $+ $chr(44) reordering scripts
  .reload -rs $+ $calc($script(0) + 1) "scripts\remote.ini"
}


3. Run /_timer.on

4. Open remote editor and click on File > New

best regards,

kap


GNU Terry Pratchett - Looking for a mIRC help channel -> Check #mircscripting @ irc.swiftirc.net