mIRC Homepage
Posted By: trenzterra Lines in popups? - 08/08/03 07:50 AM
I am in the process of creating a modular script, and I found out that when popups are created in the remotes, mIRC will always put a - at the end.

I was wondering whether it could be removed as it would look very ugly if there were lots of modules loaded.
Posted By: Watchdog Re: Lines in popups? - 08/08/03 10:26 AM
Not that I am aware of.
Posted By: trenzterra Re: Lines in popups? - 11/08/03 02:38 AM
it does, for example


menu channel,menubar {
popup
.popup1:/popup
}

menu channel {
popup
.popup2:/popup2
}

it seems to happen when one menu has different displaying options from the other.
Posted By: lammkott Re: Lines in popups? - 11/08/03 05:06 AM
A work around for this could be creating an alias and using $submenu(), have the alias perform a loop listing each loaded/unloaded script.

Code:
alias modules {
  var %i = 1
  if ($1 == begin) { return - }
  while (%i <= %number_of_loaded_files) {
    if ($1 == %i) { return %name_of_file $+ : /command }
    inc %i
  }
  if ($1 == end) { return - }
}


Note: this is an untested alias, I'm only using it as an example to better explain my suggestion.
© mIRC Discussion Forums