mIRC Homepage
Posted By: sparta ulist - 25/10/04 03:54 PM
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:
Posted By: landonsandor Re: ulist - 25/10/04 03:59 PM
you'd have to use $level or something to either /echo or /aline it
Posted By: sparta Re: ulist - 25/10/04 04:04 PM
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)..
Posted By: Sigh Re: ulist - 25/10/04 04:08 PM
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
}
Posted By: Marantz Re: ulist - 25/10/04 04:47 PM
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
} 
Posted By: sparta Re: ulist - 25/10/04 05:05 PM
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:
© mIRC Discussion Forums