mIRC Home    About    Download    Register    News    Help

Print Thread
#16781 24/03/03 10:39 PM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
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
Joined: Feb 2003
Posts: 83
L
Babel fish
Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
on *:dialog:dialogname:dclick:ID: { commands here }


any help would make me happy
#16783 24/03/03 10:59 PM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
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,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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 )
  }


D3m0nnet.com
#16785 24/03/03 11:18 PM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
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,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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
}


D3m0nnet.com
#16787 25/03/03 01:07 AM
Joined: Mar 2003
Posts: 31
G
GBX Offline
Ameglian cow
Offline
Ameglian cow
G
Joined: Mar 2003
Posts: 31
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
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
thank you both of you for your wonderful help.

#16789 25/03/03 04:58 PM
Joined: Mar 2003
Posts: 23
N
Ameglian cow
Offline
Ameglian cow
N
Joined: Mar 2003
Posts: 23
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


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


D3m0nnet.com

Link Copied to Clipboard