Hello,

I have quite a lot of knowledge of programming for mIRC, making scripts and whatnot but now I'm delving into creating dialog boxes so I can create a bot for people of which they can fine tune to their channels needs.



Alike the way your able to fine tune your mIRC settings, I wish to create on for my bot, however I do not know how to make the side menu alike the one in the mIRC options dialog and I'm not even sure if it is possible to make one exactly the same?

As for the content, I'm doing fine at the moment apart from I'm trying to make a similar window you see when you add a new server, well, you could say exactly the same apart from the add/edit features. I don't yet know how to open up another dialog via a dialog button and then send the information back. I've only mentioned this as you'll see two dialog's in my script you open via

  • /ss
  • /ac


but for the time being, I've tried to do it a different method however upon deleting, all the channels merge.

My script so far:
Code:
alias ss {
  dialog -dm setup setup
}
dialog setup {

  ; === Window ===
  title "Script Setup"
  size -1 -1 420 335
  button "OK",1,145 307 73 21, OK
  button "Cancel",2,226 307 73 21
  button "Help",3,307 307 73 21
  ; ==============
  
  box "Personal Preferences",4, 3 3 493 293
  combo 5,128 60 185 210,sort
  button "Add",6, 323 83 73 21
  button "Edit",7, 323 112 73 21
  button "Delete",8, 323 141 73 21
  button "Reset List",9, 323 170 73 21
}
alias -l update.setup {
  did -r setup 5
  set %temp.total $count(%setup.list,$chr(44))
  set %temp.count 0
  :start
  inc %temp.count 1
  did -a setup 5 $gettok(%setup.list,%temp.count,44)
  if (%temp.count < %temp.total) { goto start }
}
on *:DIALOG:setup:edit:*: {
  if ($did == 5) {
    set %setup.temp.channel $did(5).text
  }
}

on *:DIALOG:setup:sclick:*: {
  ; ====== Channel List Btn's ======
  ; === Add ===
  if ($did == 6) {
    set %setup.list %setup.list $+ %setup.temp.channel $+ ,
    update.setup
  }
  ; === Edit ===
  if ($did == 7) {
  }
  ; === Delete ===
  if ($did == 8) {
    set -u3 %setup.tc %setup.channel.selected $+ ,
    set %setup.list $remove(%setup.list,%setup.tc)
    update.setup
  }
  ; === Reset ===
  if ($did == 9) {
    unset %setup.list
    update.setup
  }
}

alias ac {
  dialog -dm addchan addchan
}

dialog addchan {

  ; === Window ===
  title "Script Setup"
  size -1 -1 261 224
  button "OK",1,16 194 73 21, OK
  button "Cancel",2,97 194 73 21
  button "Help",3,178 194 73 21
  ; ==============
  
}



Thank you for any time spent and your help and/or advice in following up my question(s).

Best Regards,
Tim