mIRC Home    About    Download    Register    News    Help

Print Thread
#29509 13/06/03 11:27 AM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
I don't get this dialog to work, what have I done wrong?

Code:
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
}


Code:
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
}

#29510 13/06/03 11:57 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
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?

#29511 13/06/03 12:28 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
hmm, i made the dialog in 'dialog studio'

#29512 13/06/03 12:37 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Ok, but what's "not working" in this dialog? Typing /dialog -m config config works for me...

#29513 13/06/03 02:09 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
when i click OK nothing happend...

#29514 13/06/03 02:11 PM
Joined: Jan 2003
Posts: 148
K
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
Hvis du kopierer koden min og legger den inn i remoten din så funker d...

Code:
 
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)
}

 

#29515 13/06/03 04:25 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
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 smirk

#29516 13/06/03 10:20 PM
Joined: Jan 2003
Posts: 148
K
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
hvis du leser hjelpe fila til mirc så hadde du funnet d... crazy

Code:
  

if ($did(18).state == 1) { set %cservice.account on }
if ($did(19).state == 1) { set %cservice.hidden.host on }


#29517 14/06/03 01:19 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
takk ska du ha.. cool


Link Copied to Clipboard