mIRC Home    About    Download    Register    News    Help

Topic Options
#914 - 10/12/02 04:24 PM Another Dialog question
PHMinistries Offline
Vogon poet

Registered: 09/12/02
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

Top
#915 - 10/12/02 05:01 PM Re: Another Dialog question
Hammer Offline
Hoopy frood

Registered: 07/12/02
Posts: 1321
Loc: Georgia, USA
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

Top
#916 - 12/12/02 06:17 AM Re: Another Dialog question
NaquadaServ Offline
Fjord artisan

Registered: 12/12/02
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

Top
#917 - 12/12/02 11:27 AM Re: Another Dialog question
PHMinistries Offline
Vogon poet

Registered: 09/12/02
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

Top