mIRC Home    About    Download    Register    News    Help

Print Thread
#241482 27/04/13 01:20 AM
Joined: Dec 2011
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Dec 2011
Posts: 8
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

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I think you need a dll for that, DCX is one that can do it, MDX is a outdated dll that also are able to make the treeview you looking for.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Dec 2011
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Dec 2011
Posts: 8
Thank you for your reply sparta, however I don't understand your acronyms, whether their file types, programs or whatnot. Could you please clarify a little more please?

Best Regards,
Tim

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You need to download a dcx.dll file, it can be found here, and then you need to create the dialog and make the dll work with the dialog.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Dec 2011
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Dec 2011
Posts: 8
Although this seems like that I'm looking for, even better than what I am looking for in fact just judging by what I am able to see, I can only see the initial dialog window as it seems to be broken.

D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -w mydialog 5: Unable to load normal icon
D_CERROR (listview) xdid -l mydialog 5: Invalid Command

On the dialog window itself it says "Mouse events are ignored", of which I'm presuming is the reason why the teabs will not work but regardless, I cannot use this dialog example.

Have you tried this yourself and if it works, what version of mIRC do you have?

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Not treeview, i using it for progressbar, and working fine there. I maybe will do a treebar later on, but now i working on somthing else in my script.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Dec 2011
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Dec 2011
Posts: 8
I don't actually understand this and the only working example I can see is the process bar stuck on 20% on the dialog itself. The left menu to switch through the examples does not work...

I'm very new to working with dialog's and sometimes I just don't get how to do things at first but then when I do, I feel stupid. I'm not sure how to do anything with this mIRC addon yet...

Thank you for your offer to make a tree menu for me smile

Joined: Dec 2011
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Dec 2011
Posts: 8
Since adding the .dll file to my mIRC, I am quite confused to as why when I type "/timertest 1 20 bla" without adding the likes of "/msg #chan" or "/echo -a", it'll instead opens up a dialog?


Link Copied to Clipboard