mIRC Home    About    Download    Register    News    Help

Print Thread
Another Dialog question #914 10/12/02 04:24 PM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
i think i got everythine else ok,
what im trying to do is when someone fills text in and hits ok,
it will play that text in a channel,
but im not sure how to trigger that,

alias prayerr { dialog -m prayerr prayerr }
dialog prayerr {
Title "Prayer Request"
Size -1 -1 400 200
icon graphics/icon.ico, index
text "PHMinistries Prayer Request", 1, 110 17 170 13,center
text "Enter Your Prayer Request ", 2, 110 30 170 13,center
text "In The Box And Press Ok", 3, 110 50 170 13,center
text "Or Cancel To Abort", 4, 110 70 170 13,center
edit "", 5, 10 90 380 20
button "Cancel", 6, 200 130 60 20,cancel
button "OK", 7, 150 130 60 20,ok
icon 8,100 160 200 200,graphics/icon.ico, index, center
icon 9,150 160 200 200,graphics/icon.ico, index, center
icon 10,200 160 200 200,graphics/icon.ico, index, center
icon 11,250 160 200 200, graphics/icon.ico, index, center
}

how do i do an sclick and get it to do something with whats in the box? crazy

Re: Another Dialog question #915 10/12/02 05:01 PM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Your editbox is did 5 and your OK button (which is what i'm assuming you want your sclick to trigger) is 7, so you just have to do something like this:
Code:
on *:DIALOG:prayerr:sclick:7:{ echo $color(info2) -s * When you clicked OK, " $+ $did($dname,5) $+ " was in the editbox. }


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Re: Another Dialog question #916 12/12/02 06:17 AM
Joined: Dec 2002
Posts: 580
N
NaquadaServ Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Wow! Another suggestion, get a dialog editor...
dstudio (Sorry no link...) or MDX (www.scripting.gr/~rg)

NaquadaServ


NaquadaBomb
www.mirc-dll.com
Re: Another Dialog question #917 12/12/02 11:27 AM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
Thanks for the help thats a great site,
i didnt even think it was possible to have an editor,
ive been trying to learn the code to do it all myself
and i think ive been doing pretty good too smile

Thanks for the help confused