kentris
New Member
Suck my eyeball !!!
Posts: 223
|
Post by kentris on May 22, 2003 13:58:09 GMT -5
Righty o, I may have asked this one before but I didn't get much feedback on it. Basically... a userlist dialog using the list view via MDX which basically shows the users of a certain level. Now I've got another button that I'm going to use for remove the selected name in the listview from that level. Now I understand that it requires using tokens, and I'm crud when it comes to tokens, so is there any ideas?
Would it be something like
on *:dialog:userlist:sclick:8:{ ruser $did(4) $gettok.... }
where :
4 = the selected user level in a combo 8 = the remove button
After $gettok I'm totally lost
|
|
|
Post by Cybah (Omega) on May 22, 2003 14:15:07 GMT -5
Like I told you in pm,give me the init and I'll know what to do .I'll just need to know how you load the names and gates etc ...
|
|
kentris
New Member
Suck my eyeball !!!
Posts: 223
|
Post by kentris on May 22, 2003 14:42:29 GMT -5
yeah um, lol I had a screenshot somewhere.... there we go...
|
|
|
Post by Cybah (Omega) on May 22, 2003 15:08:46 GMT -5
This shoud work,replace 'name' by dialog name
on *:dialog:name:sclick:8:{ ruser $did(4) $gettok($mdx.list($did(1).seltext),1,32) refreshlist }
;-- This alias cleans out all the mdx code's alias mdx.list { var %i = $remove($1,+fs 0 0 0,$chr(9),+ 0 0 0) var %i = $mid(%i,- $+ $calc($len(%i)-1)) return %i }
|
|
kentris
New Member
Suck my eyeball !!!
Posts: 223
|
Post by kentris on May 22, 2003 15:14:55 GMT -5
would it be the same if the User Mask and User Nick were the other way round? Or would it be different?
|
|
|
Post by Cybah (Omega) on May 22, 2003 23:24:48 GMT -5
instead of ,1,32 it would be ,2,32 in the gettok. But the best thing is first the gate and then the rest ...
|
|
kentris
New Member
Suck my eyeball !!!
Posts: 223
|
Post by kentris on May 23, 2003 14:06:52 GMT -5
thanks a lot Ice!! that works great ;D
|
|
|
Post by Cybah (Omega) on May 25, 2003 15:41:56 GMT -5
np ;D
|
|