|
Joined: Dec 2002
Posts: 76
Babel fish
|
OP
Babel fish
Joined: Dec 2002
Posts: 76 |
i have: dialog aident {
title "Auto Identify Stuff"
size -1 -1 352 270
option pixels
text "Nickname", 1, 23 12 48 16
text "Password", 2, 105 12 50 16
text "Server", 3, 207 12 38 16
check "", 4, 6 32 16 16, flat
box "", 5, 2 -2 348 270
check "", 6, 6 50 16 20, flat
check "", 7, 6 70 16 20, flat
check "", 8, 6 90 16 20, flat
check "", 9, 6 110 16 20, flat
check "", 10, 6 130 16 20, flat
check "", 11, 6 150 16 20, flat
check "", 12, 6 170 16 20, flat
check "", 13, 5 190 16 20, flat
check "", 14, 6 210 16 20, flat
check "Check if you want to enable identify when connect", 15, 6 230 280 20, flat
edit "", 16, 22 30 80 20, center
edit "", 17, 22 50 80 20, center
edit "", 18, 22 70 80 20, center
edit "", 19, 22 90 80 20, center
edit "", 20, 22 110 80 20, center
edit "", 21, 22 130 80 20, center
edit "", 22, 22 150 80 20, center
edit "", 23, 22 170 80 20, center
edit "", 24, 22 190 80 20, center
edit "", 25, 22 210 80 20, center
edit "", 26, 103 30 100 20, pass center
edit "", 27, 104 50 100 20, pass center
edit "", 28, 104 70 100 20, pass center
edit "", 29, 105 90 100 20, pass center
edit "", 30, 104 110 100 20, pass center
edit "", 31, 104 130 100 20, pass center
edit "", 32, 104 150 100 20, pass center
edit "", 33, 103 170 100 20, pass center
edit "", 34, 104 190 100 20, pass center
edit "", 35, 104 210 100 20, pass
edit "", 36, 206 30 120 20, center
edit "", 37, 206 50 120 20, center
edit "", 38, 206 70 120 20, center
edit "", 39, 206 90 120 20, center
edit "", 40, 206 110 120 20, center
edit "", 41, 206 130 120 20, center
edit "", 42, 206 150 120 20, center
edit "", 43, 206 170 120 20, center
edit "", 44, 206 190 120 20, center
edit "", 45, 206 210 120 20, center
button "clr", 46, 330 32 16 16, flat
button "clr", 47, 330 52 16 16, flat
button "clr", 48, 329 72 16 16, flat
button "clr", 49, 330 92 16 16, flat
button "clr", 50, 330 112 16 16, flat
button "clr", 51, 330 132 16 16, flat
button "clr", 52, 330 152 16 16, flat
button "clr", 53, 330 172 16 16, flat
button "clr", 54, 330 192 16 16, flat
button "clr", 55, 330 212 16 16, flat
button "OK", 57, 285 233 20 16, flat ok
button "Cancel", 58, 306 233 38 16, flat cancel
text "Auto Identify Stuff", 59, 8 248 336 16, center
} i need code to use this dialog, can you help me ?
Last edited by aZnLupin; 09/03/03 04:51 PM.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
/help dialogs
BTW: When you post can you please put a relevant title to your thread "I need help" is too generic.
|
|
|
|
Joined: Jan 2003
Posts: 148
Vogon poet
|
Vogon poet
Joined: Jan 2003
Posts: 148 |
alias aident { dialog -md aident aident }
|
|
|
|
Joined: Dec 2002
Posts: 417
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 417 |
what you are asking is alot of work. What I offer is a script I wrote to help you make your own code [color:red]
on *:DIALOG:dinm:sclick:*: {
if ($did == 4) { msg NickServ@services.dal.net drop %nick1 | unset %nick1 | unset %nspw1 }
if ($did == 5) { msg NickServ@services.dal.net recover %nick1 %nspw1 | msg NickServ@services.dal.net release %nick1 %nspw1 }
if ($did == 6) { nick %nick1 | ident }
if ($did == 9) { if (%1kill == ON) { msg NickServ@services.dal.net set kill OFF | set %1kill OFF } }
if ($did == 10) { if (%1kill != ON) { msg NickServ@services.dal.net set kill ON | set %1kill ON } }
if ($did == 11) { msg NickServ@services.dal.net drop %nick2 | unset %nick2 | unset %nspw2 }
if ($did == 12) { msg NickServ@services.dal.net recover %nick2 %nspw2 | msg NickServ@services.dal.net release %nick2 %nspw2 }
if ($did == 13) { nick %nick2 | ident }
if ($did == 16) { if (%2kill == ON) { msg NickServ@services.dal.net set kill OFF | set %2kill OFF } }
if ($did == 17) { if (%2kill != ON) { msg NickServ@services.dal.net set kill ON | set %2kill ON } }
if ($did == 18) { msg NickServ@services.dal.net drop %nick3 | unset %nick3 | unset %nspw3 }
if ($did == 19) { msg NickServ@services.dal.net recover %nick3 %nspw3 | msg NickServ@services.dal.net release %nick3 %nspw3 }
if ($did == 20) { nick %nick3 | ident }
if ($did == 23) { if (%3kill == ON) { msg NickServ@services.dal.net set kill OFF | set %3kill OFF } }
if ($did == 24) { if (%3kill != ON) { msg NickServ@services.dal.net set kill ON | set %3kill ON } }
if ($did == 25) { msg NickServ@services.dal.net drop %nick4 | unset %nick4 | unset %nspw4 }
if ($did == 26) { msg NickServ@services.dal.net recover %nick4 %nspw4 | msg NickServ@services.dal.net release %nick4 %nspw4 }
if ($did == 27) { nick %nick4 | ident }
if ($did == 30) { if (%4kill == ON) { msg NickServ@services.dal.net set kill OFF | set %4kill OFF } }
if ($did == 31) { if (%4kill != ON) { msg NickServ@services.dal.net set kill ON | set %4kill ON } }
if ($did == 32) { msg NickServ@services.dal.net drop %nick5 | unset %nick5 | unset %nspw5 }
if ($did == 33) { msg NickServ@services.dal.net recover %nick5 %nspw5 | msg NickServ@services.dal.net release %nick5 %nspw5 }
if ($did == 34) { nick %nick5 | ident }
if ($did == 37) { if (%5kill == ON) { msg NickServ@services.dal.net set kill OFF | set %5kill OFF } }
if ($did == 38) { if (%5kill != ON) { msg NickServ@services.dal.net set kill ON | set %5kill ON } }
if ($did == 39) { msg NickServ@services.dal.net drop %nick6 | unset %nick6 | unset %nspw6 }
if ($did == 40) { msg NickServ@services.dal.net recover %nick6 %nspw6 | msg NickServ@services.dal.net release %nick6 %nspw6 }
if ($did == 41) { nick %nick6 | ident }
if ($did == 44) { if (%6kill == ON) { msg NickServ@services.dal.net set kill OFF | set %6kill OFF } }
if ($did == 45) { if (%6kill != ON) { msg NickServ@services.dal.net set kill ON | set %6kill ON } }
if ($did == 46) { msg NickServ@services.dal.net drop %nick7 | unset %nick7 | unset %nspw7 }
if ($did == 47) { msg NickServ@services.dal.net recover %nick7 %nspw7 | msg NickServ@services.dal.net release %nick7 %nspw7 }
if ($did == 48) { nick %nick7 | ident }
if ($did == 51) { if (%7kill == ON) { msg NickServ@services.dal.net set kill OFF | set %7kill OFF } }
if ($did == 52) { if (%7kill != ON) { msg NickServ@services.dal.net set kill ON | set %7kill ON } }
if ($did == 53) { msg NickServ@services.dal.net drop %nick8 | unset %nick8 | unset %nspw8 }
if ($did == 54) { msg NickServ@services.dal.net recover %nick8 %nspw8 | msg NickServ@services.dal.net release %nick8 %nspw8 }
if ($did == 55) { nick %nick8 | ident }
if ($did == 58) { if (%8kill == ON) { msg NickServ@services.dal.net set kill OFF | set %8kill OFF } }
if ($did == 59) { if (%8kill != ON) { msg NickServ@services.dal.net set kill ON | set %8kill ON } }
if ($did == 60) { msg NickServ@services.dal.net drop %nick9 | unset %nick9 | unset %nspw9 }
if ($did == 61) { msg NickServ@services.dal.net recover %nick9 %nspw9 | msg NickServ@services.dal.net release %nick9 %nspw9 }
if ($did == 62) { nick %nick9 | ident }
if ($did == 65) { if (%9kill == ON) { msg NickServ@services.dal.net set kill OFF | set %9kill OFF } }
if ($did == 66) { if (%9kill != ON) { msg NickServ@services.dal.net set kill ON | set %9kill ON } }
if ($did == 67) { msg NickServ@services.dal.net drop %nick10 | unset %nick10 | unset %nspw10 }
if ($did == 68) { msg NickServ@services.dal.net recover %nick10 %nspw10 | msg NickServ@services.dal.net release %nick10 %nspw10 }
if ($did == 69) { nick %nick1 | ident }
if ($did == 72) { if (%10kill == ON) { msg NickServ@services.dal.net set kill OFF | set %10kill OFF } }
if ($did == 73) { if (%10kill != ON) { msg NickServ@services.dal.net set kill ON | set %10kill ON } }
if ($did == 74) {
if ( %nick1 == $me ) { msg NickServ@services.dal.net register %nspw1 %email | goto end }
if ( %nick2 == $me ) { msg NickServ@services.dal.net register %nspw2 %email | goto end }
if ( %nick3 == $me ) { msg NickServ@services.dal.net register %nspw3 %email | goto end }
if ( %nick4 == $me ) { msg NickServ@services.dal.net register %nspw4 %email | goto end }
if ( %nick5 == $me ) { msg NickServ@services.dal.net register %nspw5 %email | goto end }
if ( %nick6 == $me ) { msg NickServ@services.dal.net register %nspw6 %email | goto end }
if ( %nick7 == $me ) { msg NickServ@services.dal.net register %nspw7 %email | goto end }
if ( %nick8 == $me ) { msg NickServ@services.dal.net register %nspw8 %email | goto end }
if ( %nick9 == $me ) { msg NickServ@services.dal.net register %nspw9 %email | goto end }
if ( %nick10 == $me ) { msg NickServ@services.dal.net register %nspw10 %email | goto end }
else { echo 1 »14»15»4 $me 12is not on your Nicklist | halt }
:end
echo -a 1 »14»15»4 $me 12is now Registered | halt
}
if ($did == 75) { ident }
if ($did == 81) { dialog -m diautop diautop | diautop }
if ($did == 84) { if (%email == $null) { echo 1 »14»15»4 YOU MUST SET YOUR EMAIL FOR THIS OPPTION TO WORK } | else { msg NickServ@services.dal.net set email %email | echo 1 »14»15»12 You have just Registered your Nick } }
if ($did == 85) { if (%email == $null) { echo 1 »14»15»4 YOU MUST SET YOUR EMAIL FOR THIS OPPTION TO WORK } | else { msg NickServ@services.dal.net SET SHOWEMAIL OFF | echo 1 »14»15»12 Your Email Address is now 4Invisible } }
}
on *:DIALOG:dinm:edit:*: {
if ($did == 7) { %nick1 = $did(dinm,7) }
if ($did == 8) { %nspw1 = $did(dinm,8) }
if ($did == 14) { %nick2 = $did(dinm,14) }
if ($did == 15) { %nspw2 = $did(dinm,15) }
if ($did == 21) { %nick3 = $did(dinm,21) }
if ($did == 22) { %nspw3 = $did(dinm,22) }
if ($did == 28) { %nick4 = $did(dinm,28) }
if ($did == 29) { %nspw4 = $did(dinm,29) }
if ($did == 35) { %nick5 = $did(dinm,35) }
if ($did == 36) { %nspw5 = $did(dinm,36) }
if ($did == 42) { %nick6 = $did(dinm,42) }
if ($did == 43) { %nspw6 = $did(dinm,43) }
if ($did == 49) { %nick7 = $did(dinm,49) }
if ($did == 50) { %nspw7 = $did(dinm,50) }
if ($did == 56) { %nick8 = $did(dinm,56) }
if ($did == 57) { %nspw8 = $did(dinm,57) }
if ($did == 63) { %nick9 = $did(dinm,63) }
if ($did == 64) { %nspw9 = $did(dinm,64) }
if ($did == 70) { %nick10 = $did(dinm,70) }
if ($did == 71) { %nspw10 = $did(dinm,71) }
if ($did == 83) { %email = $did(dinm,83) }
}
dialog dinm {
title "Nick Manager Setup Options"
size -1 -1 210 165
option dbu
tab "Change Nick",1,1 5 210 165
tab "Ghost Kill",2
tab "Drop Nick",3
text "NICK PASSWORD NICK KILL ON/OFF",78,25 23 200 8
text "NICK PASSWORD GHOST KILL",80,25 23 200 8,tab 2
text "NICK PASSWORD DROP NICK",82,25 23 200 8,tab 3
button "Drop Nick",4,156 30 49 10, tab 3
button "Ghost Kill",5,156 30 49 10, tab 2
button "1",6,2 30 20 10
edit "",7,25 30 65 10
edit "",8,90 30 65 10
radio "OFF",9,160 30 20 10,group, tab 1
radio "ON",10,185 30 20 10, tab 1
button "Drop Nick",11,156 40 49 10, tab 3
button "Ghost Kill",12,156 40 49 10, tab 2
button "2",13,2 40 20 10
edit "",14,25 40 65 10
edit "",15,90 40 65 10
radio "OFF",16,160 40 20 10,group, tab 1
radio "ON",17,185 40 20 10, tab 1
button "Drop Nick",18,156 50 49 10, tab 3
button "Ghost Kill",19,156 50 49 10, tab 2
button "3",20,2 50 20 10
edit "",21,25 50 65 10
edit "",22,90 50 65 10
radio "OFF",23,160 50 20 10,group, tab 1
radio "ON",24,185 50 20 10, tab 1
button "Drop Nick",25,156 60 49 10, tab 3
button "Ghost Kill",26,156 60 49 10, tab 2
button "4",27,2 60 20 10
edit "",28,25 60 65 10
edit "",29,90 60 65 10
radio "OFF",30,160 60 20 10,group, tab 1
radio "ON",31,185 60 20 10, tab 1
button "Drop Nick",32,156 70 49 10, tab 3
button "Ghost Kill",33,156 70 49 10, tab 2
button "5",34,2 70 20 10
edit "",35,25 70 65 10
edit "",36,90 70 65 10
radio "OFF",37,160 70 20 10,group, tab 1
radio "ON",38,185 70 20 10, tab 1
button "Drop Nick",39,156 80 49 10, tab 3
button "Ghost Kill",40,156 80 49 10, tab 2
button "6",41,2 80 20 10
edit "",42,25 80 65 10
edit "",43,90 80 65 10
radio "OFF",44,160 80 20 10,group, tab 1
radio "ON",45,185 80 20 10, tab 1
button "Drop Nick",46,156 90 49 10, tab 3
button "Ghost Kill",47,156 90 49 10, tab 2
button "7",48,2 90 20 10
edit "",49,25 90 65 10
edit "",50,90 90 65 10
radio "OFF",51,160 90 20 10,group, tab 1
radio "ON",52,185 90 20 10, tab 1
button "Drop Nick",53,156 100 49 10, tab 3
button "Ghost Kill",54,156 100 49 10, tab 2
button "8",55,2 100 20 10
edit "",56,25 100 65 10
edit "",57,90 100 65 10
radio "OFF",58,160 100 20 10,group, tab 1
radio "ON",59,185 100 20 10, tab 1
button "Drop Nick",60,156 110 49 10, tab 3
button "Ghost Kill",61,156 110 49 10, tab 2
button "9",62,2 110 20 10
edit "",63,25 110 65 10
edit "",64,90 110 65 10
radio "OFF",65,160 110 20 10,group, tab 1
radio "ON",66,185 110 20 10, tab 1
button "Drop Nick",67,156 120 49 10, tab 3
button "Ghost Kill",68,156 120 49 10, tab 2
button "10",69,2 120 20 10
edit "",70,25 120 65 10
edit "",71,90 120 65 10
radio "OFF",72,160 120 20 10,group, tab 1
radio "ON",73,185 120 20 10, tab 1
button "REGISTER",74,25 130 65 10
button "IDENTIFY",75,90 130 65 10
button "Op Me Channels",81,155 130 50 10
edit "",83,25 140 180 10,tab 1
button "NICKSERV SET Email",84,25 150 65 10,tab 1
button "Set Email Invisible",85,90 150 65 10,tab 1
text "YOU MUST BE USING THE NICK,",76,5 143 125 10,tab 2
text "TO SET NICK KILL, REGISTER A NICK",77,5 150 125 10,tab 2
text "YOU MUST BE USING THE NICK,",87,5 143 125 10,tab 3
text "TO SET NICK KILL, REGISTER A NICK",88,5 150 125 10,tab 3
button "Save && &Exit",79,155 150 50 10,OK
}
alias dinm {
did -o dinm 7 1 %nick1
did -o dinm 8 1 %nspw1
did -o dinm 14 1 %nick2
did -o dinm 15 1 %nspw2
did -o dinm 21 1 %nick3
did -o dinm 22 1 %nspw3
did -o dinm 28 1 %nick4
did -o dinm 29 1 %nspw4
did -o dinm 35 1 %nick5
did -o dinm 36 1 %nspw5
did -o dinm 42 1 %nick6
did -o dinm 43 1 %nspw6
did -o dinm 49 1 %nick7
did -o dinm 50 1 %nspw7
did -o dinm 56 1 %nick8
did -o dinm 57 1 %nspw8
did -o dinm 63 1 %nick9
did -o dinm 64 1 %nspw9
did -o dinm 70 1 %nick10
did -o dinm 71 1 %nspw10
did -o dinm 83 1 %email
if ( %1kill == ON ) { did -c dinm 10 } | else { did -c dinm 9 }
if ( %2kill == ON ) { did -c dinm 17 } | else { did -c dinm 16 }
if ( %3kill == ON ) { did -c dinm 24 } | else { did -c dinm 23 }
if ( %4kill == ON ) { did -c dinm 31 } | else { did -c dinm 30 }
if ( %5kill == ON ) { did -c dinm 38 } | else { did -c dinm 37 }
if ( %6kill == ON ) { did -c dinm 45 } | else { did -c dinm 44 }
if ( %7kill == ON ) { did -c dinm 52 } | else { did -c dinm 51 }
if ( %8kill == ON ) { did -c dinm 59 } | else { did -c dinm 58 }
if ( %9kill == ON ) { did -c dinm 66 } | else { did -c dinm 65 }
if ( %10kill == ON ) { did -c dinm 73 } | else { did -c dinm 72 }
}
menu channel { Nick Manager:{ dialog -m dinm dinm | /dinm }
[/color]
Intelligence: It's better to ask a stupid question, then to prove it by not asking....
|
|
|
|
|