mIRC Home    About    Download    Register    News    Help

Print Thread
#16781 24/03/03 10:39 PM
P
PHMinistries
PHMinistries
P
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?

#16782 24/03/03 10:42 PM
L
LO_KEY
LO_KEY
L
on *:dialog:dialogname:dclick:ID: { commands here }

#16783 24/03/03 10:59 PM
P
PHMinistries
PHMinistries
P
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

#16784 24/03/03 11:07 PM
Joined: Dec 2002
Posts: 1,518
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,518
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 )
  }

#16785 24/03/03 11:18 PM
P
PHMinistries
PHMinistries
P
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.

#16786 25/03/03 12:44 AM
Joined: Dec 2002
Posts: 1,518
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,518
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
}

#16787 25/03/03 01:07 AM
G
GBX
GBX
G
Code:
on *:dialog:phmautojoin2004:dclick:4:{ set %todel99 $did($dname,4)[color:red].seltext[/color] }

that should solve your prob

#16788 25/03/03 01:43 AM
P
PHMinistries
PHMinistries
P
thank you both of you for your wonderful help.

#16789 25/03/03 04:58 PM
N
nitestarzz
nitestarzz
N
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

#16790 25/03/03 10:00 PM
Joined: Dec 2002
Posts: 1,518
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,518
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


Link Copied to Clipboard