mIRC Homepage
Posted By: PHMinistries one last list question - 24/03/03 10:39 PM
is it possible
to have an event where you double click something thats in your list box and enter it into a variable?
is that possible?
Posted By: LO_KEY Re: one last list question - 24/03/03 10:42 PM
on *:dialog:dialogname:dclick:ID: { commands here }
Posted By: PHMinistries Re: one last list question - 24/03/03 10:59 PM
on *:dialog:phmautojoin2004:dclick:4:{ set %todel99 $did($dname,4) }

thats what i use

i double click on the in the list

it makes the variable
but nothing in it,
gots to be something small im missing but i cant figure out what
Posted By: _D3m0n_ Re: one last list question - 24/03/03 11:07 PM
this is what i use
Code:
on *:DIALOG:_nicklist:dclick:*: { 
     set -u60 %nickon $remove($did(1,$did(1,%1).sel).text,.,@,+,%,0 fs 1 0 0,0 fs 2 0 0,0 fs 3 0 0,0 fs 4 0 0,0 fs 5 0 0,0 fs 6 0 0,0 fs 7 0 0 )
  }
Posted By: PHMinistries Re: one last list question - 24/03/03 11:18 PM
no offense,
and i know your a good scripter cause you give good help,
but what is that?

im trying to read and understand, but im lost.
Posted By: _D3m0n_ Re: one last list question - 25/03/03 12:44 AM
ok it was realy just an example of how to get the actual text from a list menu ... but in my example it had to remove the @ % + from the nick beforehand cause it was from a nicklist dialog ..... it also have to remove other set variables from the nick in the nicklist that contained a icon code ...... for u id say u wouldnt have to use the remove set maybe something alil more simple like

Code:
on *:DIALOG:DIALOGNAME:dclick:*: {
  set %variablename $did($dname,LISTIDNUMBER,$did($dname,LISTIDNUMBER).sel).text
}
Posted By: GBX Re: one last list question - 25/03/03 01:07 AM
Code:
on *:dialog:phmautojoin2004:dclick:4:{ set %todel99 $did($dname,4)[color:red].seltext[/color] }

that should solve your prob
Posted By: PHMinistries Re: one last list question - 25/03/03 01:43 AM
thank you both of you for your wonderful help.
Posted By: nitestarzz Re: one last list question - 25/03/03 04:58 PM
the numeric figures at the back is actually the list parameters such as icon number etc ... it varies so it wont work on other things
Posted By: _D3m0n_ Re: one last list question - 25/03/03 10:00 PM
lol ur replying to someone who doesnt have a problem with the one hes using right now ..... i know what mine does ... i just posted an example from mine to show him what i did to return the text and not the number of the line of selected text in a listbox
© mIRC Discussion Forums