mIRC Home    About    Download    Register    News    Help

Print Thread
what is wrong ? #4352 01/01/03 02:16 PM
Joined: Dec 2002
Posts: 12
G
Gravity Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Dec 2002
Posts: 12
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

Re: what is wrong ? #4353 01/01/03 02:22 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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
}

Re: what is wrong ? #4354 01/01/03 03:33 PM
Joined: Dec 2002
Posts: 12
G
Gravity Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Dec 2002
Posts: 12
i will click on connect -> /dialog_connect
and i will click on Services -> /dialog_services

please help
tHX

Re: what is wrong ? #4355 01/01/03 04:25 PM
Joined: Dec 2002
Posts: 774
T
theRat Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
/help $did


Code:
//if ( khaled isgod ) echo yes | else echo no
Re: what is wrong ? #4356 01/01/03 06:07 PM
Joined: Dec 2002
Posts: 12
G
Gravity Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Dec 2002
Posts: 12
i dont to work it please help example.

thx

Re: what is wrong ? #4357 02/01/03 05:14 AM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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)


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C