|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
I don't get this dialog to work, what have I done wrong? dialog config {
title "Script Configuration"
size -1 -1 132 99
option dbu
edit "", 1, 7 8 50 10, limit 9
text "Nickname:", 2, 2 1 26 7
text "Alternative Nickname:", 3, 2 20 54 7
box "CService Account", 4, 62 2 65 74
button "Ok", 5, 63 81 30 12, ok
edit "", 6, 7 27 50 10, limit 9
text "Away Nickname:", 7, 2 39 41 7
edit "", 8, 8 46 50 10, limit 9
text "Username:", 9, 65 33 27 7
text "Password:", 10, 65 53 26 7
edit "", 11, 71 40 50 10
edit "", 12, 71 60 50 10, pass
button "Cancel", 13, 97 81 30 12, cancel
text "Real Name:", 14, 3 58 28 7
edit "", 15, 8 65 50 10, limit 13
text "User ID (identd):", 16, 3 77 41 7
edit "", 17, 9 84 50 10, limit 10
check "Auto Login", 18, 72 12 38 8
check "Hidden Host", 19, 72 22 41 8
} on *:dialog:config:sclick:5:{
nick $did( $dname , 1 ).text
anick $did( $dname , 6 ).text
set %awaynick $did( $dname , 8 ).text
set %name $did( $dname , 15 ).text
set %user-id $did( $dname , 17 ).text
}
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
1. I can open the dialog. 2. I can get the values saved upon clicking 'OK'.
What else could go wrong?
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
hmm, i made the dialog in 'dialog studio'
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
Ok, but what's "not working" in this dialog? Typing /dialog -m config config works for me...
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
when i click OK nothing happend...
|
|
|
|
Joined: Jan 2003
Posts: 148
Vogon poet
|
Vogon poet
Joined: Jan 2003
Posts: 148 |
Hvis du kopierer koden min og legger den inn i remoten din så funker d...
alias config dialog -m config config
dialog config {
title "Script Configuration"
size -1 -1 132 99
option dbu
edit "", 1, 7 8 50 10, limit 9
text "Nickname:", 2, 2 1 26 7
text "Alternative Nickname:", 3, 2 20 54 7
box "CService Account", 4, 62 2 65 74
button "Ok", 5, 63 81 30 12, ok
edit "", 6, 7 27 50 10, limit 9
text "Away Nickname:", 7, 2 39 41 7
edit "", 8, 8 46 50 10, limit 9
text "Username:", 9, 65 33 27 7
text "Password:", 10, 65 53 26 7
edit "", 11, 71 40 50 10
edit "", 12, 71 60 50 10, pass
button "Cancel", 13, 97 81 30 12, cancel
text "Real Name:", 14, 3 58 28 7
edit "", 15, 8 65 50 10, limit 13
text "User ID (identd):", 16, 3 77 41 7
edit "", 17, 9 84 50 10, limit 10
check "Auto Login", 18, 72 12 38 8
check "Hidden Host", 19, 72 22 41 8
}
on *:dialog:config:sclick:5:{
nick $did(1)
anick $did(6)
set %awaynick $did(8)
set %name $did(15)
set %user-id $did(17)
}
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
ID #18 og #19 is check boxes.. How to if check boxes is checked: If checked: set %cservice.account on and %cservice.hidden.host on
|
|
|
|
Joined: Jan 2003
Posts: 148
Vogon poet
|
Vogon poet
Joined: Jan 2003
Posts: 148 |
hvis du leser hjelpe fila til mirc så hadde du funnet d...
if ($did(18).state == 1) { set %cservice.account on }
if ($did(19).state == 1) { set %cservice.hidden.host on }
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
takk ska du ha..
|
|
|
|
|