mIRC Home    About    Download    Register    News    Help

Print Thread
#246320 03/06/14 06:44 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

I wanna request to add this command into the mIRC core, i know that there are many ways to script this command but it will be more easy and logic if the mIRC had this command as far has /socklist and /flist for, i think in my opinion this is not something very important but it can't be missing it makes the mIRC more poor into the scripting code, also helping users that has not any idea about script that if they using any script to know which COM is in use into their pc, /socklist command it's very helpfull when trying to build an code with sockets why not make /comlist to help the users with it.

- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #246322 03/06/14 07:05 PM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
I've had need for this in the past.


My scripted version:
Code:
alias comlist {
  var %x = 1
  while ($com(%x)) {
    if (%x == 1) {
      echo $color(info) -a * Open COMs:
    }
    echo -a $com(%x)
    inc %x
  }
  if (%x == 1) {
    echo $color(info) -a * No open COMs
  }
}


I am SReject
My Stuff
Joined: Jun 2003
Posts: 81
T
TRT Offline
Babel fish
Offline
Babel fish
T
Joined: Jun 2003
Posts: 81
You should always check $com != null.
(Even though it's clearly not best practice, a script may still use ^0+$ as a valid name)


Link Copied to Clipboard