mIRC Home    About    Download    Register    News    Help

Print Thread
#83309 17/05/04 04:49 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
I was wondering if it is possible to list all sockmarks assigned to sockets which start in test. For example test123, test321 etc... If so how?
Thanks.

#83310 17/05/04 07:44 PM
Joined: Dec 2002
Posts: 208
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 208
Code:
sockmark_list {
  ; * usage: /sockmark_list socknamematch
  ; * example: /sockmark_list test*
  var %sock.ctr = 0, %sock.tot = $sock($1,0)
  if (%sock.tot >= 1) { echo -ca info2 * Listing Matching Sockets $+(1-,%sock.tot) }
  while (%sock.ctr < %sock.tot) {
    inc %sock.ctr | var %sock = $sock($1,%sock.ctr)
    echo -ac info2 * - %sock.ctr SockName: %sock SockMark: $sock(%sock).mark
  }
  echo -ac info2 * SockMark_List End
}

loop though all matching sockets ( $sock(*matchtext*,N) )
and echo its $sock().mark

or display it however you wish

i didnt test the above code, but by looking at it i see no reason why it shouldnt work

to do what you asked simply use this alias and type /sockmark_list test*


hope this was helpful.

Cobra^

#83311 18/05/04 02:59 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
Thanks, it worked. It was very helpful. smile


Link Copied to Clipboard