mIRC Homepage
Posted By: demitrix dialog - 10/07/03 06:12 AM
ok i tried everything can some1 make me a simple dialog that just displays a message with an Ok button?
Posted By: andymps Re: dialog - 10/07/03 07:02 AM
what do u mean, so u can see how it works?
Posted By: pheonix Re: dialog - 10/07/03 07:07 AM
dialog Ok {
title "Ok"
size -1 -1 158 46
option dbu
button "Ok", 1, 56 16 37 12, ok
}
Posted By: andymps Re: dialog - 10/07/03 07:09 AM
dialog dialog1 {
title "Dialog"
size -1 -1 298 145
box "Box", 1, 25 4 249 49
button "ok", 2, 117 85 65 25, ok
text " ", 3, 41 24 219 17
}
on *:dialog:dialog1:init:*: {
did -a dialog1 3 This is a dialog
}
oh u beat me to it :tongue:
Posted By: SladeKraven Re: dialog - 10/07/03 07:17 AM
Code:
dialog Demitrix {
  title "Demitrix "
  size -1 -1 106 112
  option dbu
  edit "Enter your text here..", 1, 13 17 73 11
  button "Submit", 2, 9 65 37 12
  button "Clear", 3, 57 65 37 12
  button "OK", 4, 33 87 37 12
}

on *:dialog:Demitrix:sclick:*: {
  if ($did == 2) { msg $active $did(Demitrix,1) }
  if ($did == 3) { did -r Demitrix 1 }
  else { dialog -x Demitrix Demitrix }
}


You both beat me to it. mad
Posted By: qwerty Re: dialog - 10/07/03 12:16 PM
mirc has a built-in identifier that pops up the kind of dialog you want. Type /help $input to read about it.
© mIRC Discussion Forums