mIRC Homepage
Posted By: Loki12583 Filling dialog edit boxes with aliases - 21/08/08 01:47 AM
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)
Posted By: RusselB Re: Filling dialog edit boxes with aliases - 21/08/08 03:01 AM
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.
© mIRC Discussion Forums