mIRC Home    About    Download    Register    News    Help

Print Thread
#40488 08/08/03 07:50 AM
Joined: Dec 2002
Posts: 196
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Dec 2002
Posts: 196
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.


trenzterra
AustNet #trenzterra and #w
Head Scripter @ http://trenzterra.uni.cc
#40489 08/08/03 10:26 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Not that I am aware of.

#40490 11/08/03 02:38 AM
Joined: Dec 2002
Posts: 196
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Dec 2002
Posts: 196
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.


trenzterra
AustNet #trenzterra and #w
Head Scripter @ http://trenzterra.uni.cc
#40491 11/08/03 05:06 AM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
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.


- Jason

Link Copied to Clipboard