mIRC Home    About    Download    Register    News    Help

Print Thread
#125815 22/07/05 03:08 AM
Joined: Jul 2004
Posts: 40
D
dmmrs Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jul 2004
Posts: 40
ON *:DIALOG:user_setup:sclick:4: {
echo -a $did(user_setup,4).sel
}

this piece of code won't work, and I'm tearing my hair out here...i can't see why it won't work; my combo box is id 4, the dialog is named right...so why won't it work?

Any help would be appreciated smile


i script, therefore i am smirk
theres logic in there somewhere...
#125816 22/07/05 04:18 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
You can access the edit control in a combobox by using 0 as the N value.
so try

ON *:DIALOG:user_setup:sclick:4: {
echo -a $did(user_setup,4,0)
}
now, um I don't think you want to use the sclick for ID 4 if its a combobox, is there a button to add or whatever that takes the info from line 0 (the editbox of the combobox) and adds it into the list part of the box?

#125817 22/07/05 04:21 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Also, if you need the line number of the line you selected you can do that by:

echo -a $did($dname,4,0) is line number $didwm($dname,4,$did($dname,4,0),1)

-Andy


Link Copied to Clipboard