mIRC Home    About    Download    Register    News    Help

Print Thread
Filling dialog edit boxes with aliases #203590 21/08/08 01:47 AM
Joined: Jan 2004
Posts: 1,282
L
Loki12583 Online OP
Hoopy frood
OP Online
Hoopy frood
L
Joined: Jan 2004
Posts: 1,282
Which would be the best way to fill edit boxes?

Code:
edit $hget(WhatScript.settings,username), 10, 55 30 80 10, tab1 autohs


This is what I would like to use but it doesn't seem to work, because of the comma I'm assuming. So that leaves a couple of options. I could escape the comma like this in the dialog table itself:

Code:
edit $hget(WhatScript.settings [ $chr(44) ] username), 10, 55 30 80 10, tab1 autohs


Create a custom alias so no comma is needed:

Code:
alias -l setting return $hget(WhatScript.settings,$1)

edit $setting(username), 10, 55 30 80 10, tab1 autohs


Or I could fill it with the did command.

Code:
did -a $dname 10 $hget(WhatScript.settings,username)

Re: Filling dialog edit boxes with aliases [Re: Loki12583] #203594 21/08/08 03:01 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Presuming that you have tested these other options, my preference would be to use the /did, due to the fact that I find it easier to read, and if you need to set the boxes at the beginning of the script, you can just set them in the init event.