mIRC Home    About    Download    Register    News    Help

Print Thread
#218973 02/03/10 03:46 AM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
Quote:
dialog ampstat {
title "Winamp Stat"
size -1 -1 320 210
option pixels
box "Select type of Public Away Message", 12, 9 102 299 65
edit %amp.play, 1, 10 28 100 20, autohs
edit %amp.play.mid, 2, 111 28 100 20, autohs
edit %amp.play.end, 3, 212 28 100 20, autohs
text "Beginning:", 4, 10 11 50 14
text "Middle:", 5, 111 11 34 14
text "Ending:", 6, 213 11 36 14
check "Show time", 7, 10 55 74 17
check "Show kb/ps", 8, 10 76 80 17
button "OK", 9, 174 177 65 25, ok
button "Cancel", 10, 243 177 65 25, cancel
radio "/msg - Send message to channel", 14, 21 121 183 17
radio "/me - Send action message to channel", 15, 21 140 208 17

}

How can I get one of the radio enabled?


on *:dialog:ampstat:sclick:9:{
if ($did(7).state == 1) { set %amp.play.length on } | else { set %amp.play.length off }
if ($did(8).state == 1) { set %amp.play.kbps on } | else { set %amp.play.kbps off }
if ($did(14).state == 1) { set %amp.play.sayact say } | else { set %amp.play.sayact action }
if ($did(15).state == 1) { set %amp.play.sayact action } | else { %amp.play.sayact say }

set %amp.play $did(1)
set %amp.play.mid $did(2)
set %amp.play.end $did(3)
}


How can I get on of the radio to be enablet when I open the dialog depending on %amp.play.sayact is "SAY" og "ACTION"

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
/help /did
Quote:
-c check checkbox/radiobutton list/combo line
-u uncheck checkbox/radiobutton list/combo line


Suggestion
Code:
dialog ampstat {
  title "Winamp Stat"
  size -1 -1 320 210
  option pixels
  box "Select type of Public Away Message", 12, 9 102 299 65
  edit %amp.play, 1, 10 28 100 20, autohs
  edit %amp.play.mid, 2, 111 28 100 20, autohs
  edit %amp.play.end, 3, 212 28 100 20, autohs
  text "Beginning:", 4, 10 11 50 14
  text "Middle:", 5, 111 11 34 14
  text "Ending:", 6, 213 11 36 14
  check "Show time", 7, 10 55 74 17
  check "Show kb/ps", 8, 10 76 80 17
  button "OK", 9, 174 177 65 25, ok
  button "Cancel", 10, 243 177 65 25, cancel
  radio "/msg - Send message to channel", 14, 21 121 183 17,group
  radio "/me - Send action message to channel", 15, 21 140 208 17
}

on *:dialog:ampstat:sclick:9:{
  set %amp.play.length $iif($did(7).state,on,off)
  set %amp.play.kbps $iif($did(8).state,on,off)
  set %amp.play.sayact $iif($did(14).state,say,action)
  set %amp.play $did(1)
  set %amp.play.mid $did(2)
  set %amp.play.end $did(3)
}



Link Copied to Clipboard