mIRC Home    About    Download    Register    News    Help

Print Thread
#101541 25/10/04 03:54 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Any way you can grab the info from user list?

/ulist 8

list all users with level 8, but can i gather that info to a @window or to a dialog ? debug dont show anything when i type ulist :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#101542 25/10/04 03:59 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
you'd have to use $level or something to either /echo or /aline it


Those who fail history are doomed to repeat it
#101543 25/10/04 04:04 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
but how ?? $level is triggered in an event like join, and that wouldent help me, i want to list all users in my userlist with level 8.. (level 8 is just an example)..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#101544 25/10/04 04:08 PM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
Use $ulist for this, loop through $ulist(*,8,N) and add each returned entry to your window or dialog:

var %i = 1
while ($ulist(*,8,%i)) {
did -a dname id $v1
;echo @win $v1
inc %i
}

#101545 25/10/04 04:47 PM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
Vogon poet
Joined: Mar 2003
Posts: 160
I made something like that a while ago, to list/add/remove things to the ulist
Code:
 users {
  if ($1 == $null) { 
    set %i 1
    while (%i <= $ulist(*,*,0)) { echo -a $bit entry %i $+ 14:15 level: $+ $level($ulist(*,*,%i)) - $ulist(*,*,%i) | inc %i }
    echo -a $bit 0syntax14:15 /users -rl <entry/level> (r = remove/entry l = remove/level)
  }
  if (rl isin $1) { echo -a $bit 0error14:15 one at a time please! | halt }
  if (lr isin $1) { echo -a $bit 0error14:15 one at a time please! | halt }
  if (r isin $1) { /.ruser $ulist(*,*,$2) | echo -a $bit removed $ulist(*,*,$2) from ulist | halt }
  if (l isin $1) { /.rlevel $2 | echo -a $bit removed level $2 | halt }
  halt
} 

#101546 25/10/04 05:05 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
That works just fine, do somone also know if you can mark a line that are longer then the @window ?

"window -m @win" allow line marker , but you can only copy the text you see in the @win, i want to do it as you do in a edit box in a dialog: autohs
hope you understand what you mean.. :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard