mIRC Homepage

what is wrong ?

Posted By: Gravity

what is wrong ? - 01/01/03 02:16 PM

alias mdx_fullpath { return $+(",$scriptdir\mdx.dll,") }

alias mdx { dll $mdx_fullpath $1- }

alias mdxinit {
dll $mdx_fullpath SetMircVersion $version
dll $mdx_fullpath MarkDialog $dname
}

dialog Mdx_dialog {
size -1 -1 304 226
title "Dialog"
list 1,10 7 288 214,extsel size
}
on *:dialog:Mdx_dialog:init:*:{
mdxinit
mdx SetControlMDX $dname 1 TreeView haslines linesatroot hasbuttons editlabels > $scriptdir\views.mdx
did -i $dname 1 1 iconsize normal small
did -i $dname 1 1 seticon normal 0, $+ $scriptdir\KS1.ico
did -i $dname 1 1 seticon normal 0, $+ $scriptdir\j9.ico
did -a $dname 1 1 1 Connect
did -i $dname 1 1 cb root last 1
did -a $dname 1 1 1 Services
}

on *:dialog:mdx_dialog:sclick:1:/dialog_connect
on *:dialog:mdx_dialog:sclick:1:/dialog_services

what is wrong ? need help please
Posted By: Collective

Re: what is wrong ? - 01/01/03 02:22 PM

1. What do you want it to do?
2. You can't have multiple on DIALOG events that are the same, you should use
on *:dialog:mdx_dialog:sclick:1:{
/dialog_connect
/dialog_services
}
Posted By: Gravity

Re: what is wrong ? - 01/01/03 03:33 PM

i will click on connect -> /dialog_connect
and i will click on Services -> /dialog_services

please help
tHX
Posted By: theRat

Re: what is wrong ? - 01/01/03 04:25 PM

/help $did
Posted By: Gravity

Re: what is wrong ? - 01/01/03 06:07 PM

i dont to work it please help example.

thx
Posted By: Hammer

Re: what is wrong ? - 02/01/03 05:14 AM

Since ID 1 is a listbox (which can have multiple lines - and does in this case), you need to find the selected line. Your listbox even uses the extended selection style, so you can have more than one line selected. You will have to loop through $did($dname,1,%i).seltext to figure out which command you need to issue. The important question is: when should you trigger this? Judging by what I see in your example, I wouldn't think you needed to use extsel at all.
Code:

on *:dialog:mdx_dialog:sclick:1: $+(dialog_,$did($dname,1,1).seltext)
© 2020 mIRC Discussion Forums