|
Joined: Feb 2003
Posts: 43
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2003
Posts: 43 |
Need help with dialogs. I don't get it. It's that simple. How <edit> do you open a window, get the ok or cancel buttons and the input, how <edit> do you run it and for <edit> don't tell me to read the help file. I hate people who do that, do you think anyone would post here if they hadn't tried the help file and didn't get it? Anyway, help!
<NOTE: edited for language>
Last edited by MIMP; 20/04/04 12:16 AM.
 Mr.Newb  A.K.A Kazz
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
Hi, many people post here without reading the help file. The help file comes with some nice examples regarding dialogs. Anyway, if you still find it hard to understand, then perhaps this will make it clearer: http://helpdesk.zaz.net/documents/dialog/dialog.htmlBtw for future reference: you are more likely to get response to your call for help, if you ask it in a nicer (read: more civilized) way, than repeating "what the hell" and saying things like "i hate people who.." Greetz
Gone.
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
For a plain input dialog you can use $input. For example, //echo -a $$input(Please enter your name,e)
|
|
|
|
Joined: Feb 2003
Posts: 43
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2003
Posts: 43 |
k, Is there any way to get around setting height and width etc. cause I have no idea how to figure that out and it's really startin to bug me
 Mr.Newb  A.K.A Kazz
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
$input produces very basic boxes. For anything more advanced you'd have to learn dialogs. If you want, there are several editors which can help you compose the visual table. I don't know where they are hiding on the web, so in the meantime I uploaded them to my account: http://members.lycos.co.uk/onln/files/editors/
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
You get what you pay for kinda applies - if you're not willing to invest a little time to learn, you can't do it. Here's an excellent tutorial on dialogs: HelpDesk dialogs tutorial
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Feb 2003
Posts: 43
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2003
Posts: 43 |
dialog EZScript {
title "EZScript"
option dbu
tab "General Options", 1, 5 5 290 140
tab "Pager Options", 2
tab "Auto Identify Options", 5
tab "About", 4
size -1 -1 300 150
button "OK",12, 180 115 50 25, OK, tab 1
button "cancel",10, 235 115 50 25, cancel, tab 1
Text "Enter Your Name",501, 15 112 20 20, tab 1
edit "",37, 30 115 50 15, autohs %XXXNAMEXXX, tab 1
Text "EZScriptV6.0 was written By Kaz In XX,2004",500, 20 50 150 20, center tab 4
Text "Customized Greeting Options",504, 17 85 70 20, tab 1
Radio "ON",502, 32 95 20 10, autohs %Agent ON, group tab 1
Radio "OFF",503, 57 95 20 10, autohs %Agent OFF, tab 1
}
on 1:dialog:EZscript:sclick:502 {
set %Agent on
}
on 1:dialog:EZScript:Close: {
if (%Agent == ON) { set %Agent ON }
}
Ok, anyone willing to help me out even tho I've been kind of a dick... srry 'bout that. Just REALLY annoying to not get something you've tried a billion times to do. This is just a part I'm stuck on, I have it so that when you click ON the %Agent goes ON, but when I exit the dialog it goes off again, how can I keep it on?
 Mr.Newb  A.K.A Kazz
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
dialog EZScript {
title "EZScript"
option dbu
tab "General Options", 1, 5 5 290 140
tab "Pager Options", 2
tab "Auto Identify Options", 5
tab "About", 4
size -1 -1 300 150
button "OK",12, 180 115 50 25, OK, tab 1
button "cancel",10, 235 115 50 25, cancel, tab 1
Text "Enter Your Name",501, 15 112 20 20, tab 1
edit "",37, 30 115 50 15, autohs %XXXNAMEXXX, tab 1
Text "EZScriptV6.0 was written By Kaz In XX,2004",500, 20 50 150 20, center tab 4
Text "Customized Greeting Options",504, 17 85 70 20, tab 1
[color:green] Radio "ON",502, 32 95 20 10, group tab 1
Radio "OFF",503, 57 95 20 10, tab 1
}
on *:dialog:EZscript:sclick:502,503:{
set %Agent $did(502).state
}
on *:dialog:EZScript:init:0:{
if %Agent { did -c $dname 502 }
else { did -c $dname 503 }
}[/color]
|
|
|
|
|