mIRC Home    About    Download    Register    News    Help

Print Thread
Drag and drop controls for mIRC? #146457 04/04/06 08:43 PM
Joined: May 2005
Posts: 449
bwr30060 Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Someone mentioned this to me the other day, but said they don't remember where they saw it. Does anyone know of any programs or addons for mIRC that let you use drag and drop to add controls to dialogs? I've decided not to do my admin console in VB, but to use mIRC scripting. I'd originally chose VB because I like the drag and drop, but it was too complicated to set up the IRC connection. Thanks.

Re: Drag and drop controls for mIRC? #146458 04/04/06 10:48 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I've tried both Dialog Editor and Dialog Studio, and in my opinion, Dialog Studio is superior. You can get Dialog Studio here

Re: Drag and drop controls for mIRC? #146459 04/04/06 11:00 PM
Joined: May 2005
Posts: 449
bwr30060 Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Someone just gave me Dialog Editor shortly after I posted. I've designed my admin console with it, but maybe I'll also give Dialog Studio a try to see which I like better. Thanks.

Re: Drag and drop controls for mIRC? #146460 04/04/06 11:31 PM
Joined: May 2005
Posts: 449
bwr30060 Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
I just wrote the design for my admin console in Dialog Editor, but I'm having a problem running the dialog. Another odd thing I noticed in the code is that one of the tabs is number 59 and I only have three or four tabs. I'm using "dialog -m admin admin" to start it and I'm getting "-L Unknown command" in the status window. Any ideas why? Here's the code:
Code:
dialog admin {
  title "Admin Console"
  size -1 -1 250 329
  option dbu
  tab "Nick Control", 1, 2 3 246 321
  tab "Channel Control", 2
  tab "Ban Control", 3
  tab "Bot Control", 59
  list 4, 6 32 94 166, tab 1 vsbar
  list 6, 106 32 74 112, tab 1 vsbar
  text "Nicks", 7, 7 22 50 8, tab 1
  radio "As Blake", 8, 7 196 50 8, tab 1
  radio "As Bot", 9, 7 208 50 8, tab 1
  button "Owner", 10, 184 32 32 12, tab 1
  button "De-Owner", 11, 184 46 32 12, tab 1
  button "Op", 12, 184 61 32 12, tab 1
  button "De-Op", 13, 184 75 32 12, tab 1
  button "Voice", 14, 184 90 32 12, tab 1
  button "De-Voice", 15, 184 104 32 12, tab 1
  button "Kick", 16, 184 119 32 12, tab 1
  button "Ban", 17, 184 133 32 12, tab 1
  button "Un-Ban", 18, 184 148 32 12, tab 1
  button "K-Line", 19, 184 162 32 12, tab 1
  button "Kill", 20, 184 177 32 12, tab 1
  text "Channels", 21, 107 21 50 8, tab 1
  box "Connection", 5, 7 232 49 87, tab 1
  button "Log In", 22, 9 239 32 12, tab 1
  button "Log Out", 23, 9 252 32 12, tab 1
  button "Away", 24, 9 265 32 12, tab 1
  button "Back", 25, 9 278 32 12, tab 1
  button "Join", 26, 9 291 32 12, tab 1
  button "Part", 27, 9 304 32 12, tab 1
  text "My Nick", 28, 64 196 50 8, tab 1
  edit "", 29, 64 208 87 10, tab 1
  button "Change", 30, 154 205 32 12, tab 1
  text "New Nick", 31, 66 238 50 8, tab 1
  edit "", 32, 66 250 50 10, tab 1
  button "Change", 33, 121 248 32 12, tab 1
  box "Channel Modes", 34, 5 18 238 61, tab 2
  check "Only Ops Set Topic", 35, 10 26 56 8, tab 2
  check "No External Messages", 36, 10 38 72 8, tab 2
  check "Invite Only", 37, 10 49 50 8, tab 2
  check "Moderated", 38, 10 61 50 8, tab 2
  check "Key", 39, 116 26 20 8, tab 2
  edit "", 40, 139 27 50 10, tab 2
  check "Limit to", 41, 116 38 28 8, tab 2
  edit "", 42, 144 37 21 10, tab 2
  text "users", 43, 165 38 22 8, tab 2
  check "Private", 44, 116 49 50 8, tab 2
  check "Secret", 45, 116 61 50 8, tab 2
  edit "", 46, 10 104 229 10, tab 2
  text "Topic", 47, 117 91 16 8, tab 2
  text "New Topic", 48, 111 147 27 8, tab 2
  edit "", 49, 10 160 229 10, tab 2
  button "Change", 50, 143 144 32 12, tab 2
  list 51, 10 191 96 114, tab 2 vsbar
  text "Channels", 52, 46 179 25 8, tab 2
  list 53, 6 40 114 141, tab 3 vsbar
  list 54, 122 40 114 141, tab 3 vsbar
  text "K-lines", 55, 55 30 16 8, tab 3
  text "G-lines", 56, 170 30 17 8, tab 3
  button "Remove", 57, 47 181 32 12, tab 3
  button "Remove", 58, 163 181 32 12, tab 3
  edit "", 60, 8 32 234 10, tab 59
  button "Say", 61, 37 44 32 12, tab 59
  button "Act", 62, 76 44 32 12, tab 59
  icon 63, 77 239 96 78, C:\Program Files\mIRC\me.jpg, 0 tab 59
  text "Admin Console---by Blake", 64, 77 227 96 8, tab 59 center
}

Re: Drag and drop controls for mIRC? #146461 04/04/06 11:45 PM
Joined: Mar 2005
Posts: 420
X
xDaeMoN Offline
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
I don't see a problem with that code. Maybe you have a dialog init event, try checking that part.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Re: Drag and drop controls for mIRC? #146462 05/04/06 12:40 AM
Joined: May 2005
Posts: 449
bwr30060 Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
I don't have any events with it yet. I just wanted to load the dialog to see it. It works now and I'm not sure what fixed it. I reloaded the script file and used "dialog -m admin admin". Thanks for your help.

Re: Drag and drop controls for mIRC? #146463 05/04/06 03:11 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The reason your 4th tab is numbered 59, is because when you were creating the tabs & items on the tabs, when you went to create the 4th tab, 59 was the next unused ID number. As to your error, I don't have a clue, as I tried the dialog as you have it posted, and it worked fine (excluding the fact that I had to remark the icon item since I don't have that icon)

Re: Drag and drop controls for mIRC? #146464 05/04/06 03:26 AM
Joined: May 2005
Posts: 449
bwr30060 Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Ah, that's it. I forgot that I added the fourth tab after I had added all the controls on the first three. Thanks. Not sure why it wouldn't work, but it's OK now.