Code:
dialog example {
  title "Example!!!"
  size -1 -1 62 36
  option dbu
  text "Arbitrary Text!", 1, 2 2 60 8, center
  radio "Continue", 2, 2 10 33 10
  radio "Abort", 3, 35 10 27 10
  button "OK", 4, 2 22 58 12, ok
  edit "",5, 1 1 1 1, result hide
}
on *:DIALOG:example:init:0:{ did -c $dname 2 | did -o $dname 5 1 Continue }
on *:DIALOG:example:sclick:2:{ did -o $dname 5 1 Continue }
on *:DIALOG:example:sclick:3:{ did -o $dname 5 1 Abort }

alias example { echo -a $dialog(example,example,-4) }

Last edited by kap; 05/05/17 05:20 PM.

GNU Terry Pratchett - Looking for a mIRC help channel -> Check #mircscripting @ irc.swiftirc.net