mIRC Homepage
Posted By: PHMinistries Another Dialog question - 10/12/02 04:24 PM
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
Posted By: Hammer Re: Another Dialog question - 10/12/02 05:01 PM
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. }
Posted By: NaquadaServ Re: Another Dialog question - 12/12/02 06:17 AM
Wow! Another suggestion, get a dialog editor...
dstudio (Sorry no link...) or MDX (www.scripting.gr/~rg)

NaquadaServ
Posted By: PHMinistries Re: Another Dialog question - 12/12/02 11:27 AM
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
© mIRC Discussion Forums