mIRC Homepage
Posted By: MaGoScUrO_ help about DID help - 29/09/03 07:42 AM
dialog q {
title "MaGoOsCuRo's Query Blocker"
size -1 -1 213 164
option dbu
text "Nick:", 1, 7 15 26 8
box "Katana Script Blockeador de Privado", 2, 2 1 208 153
text "Servidor:", 3, 37 15 25 8
button "Aceptar", 5, 7 119 37 12, flat ok
button "Cancelar", 6, 86 119 37 12, flat ok
button "Cerrar", 8, 6 140 119 9, flat cancel
list 4, 6 26 195 50, size
}

on 1:dialog:q:init:4: {

.did -i $Nick

this the right way to do it?

thnx
Posted By: sparta Re: help about DID help - 29/09/03 08:06 AM
You must add the ID to it.. and -i ? what is this dialog suposed to do?

did -a dialog_name ID What to happen

-a help you set a %var in a dialog.. (so it show on init)

you can also make it this way:

Code:
on *:dialog:DIALOG_NAME:*:*: {
  if ($devent == init) {
    did -a DIALOG ID %var  <<-- set a %var when init..
  }
  if ($devent == sclick) {
    if ($did == ID) { command } <<-- do somthing when click on a button
  }
  if ($did == ID) { set %var $did(ID).text } <<-- grab the text from a edit box and plase it as a %var
}
Posted By: MaGoScUrO_ Re: help about DID help - 29/09/03 08:11 AM
i need to put some text with the command did on my list box :O)
© mIRC Discussion Forums