mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
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)

Joined: Aug 2004
Posts: 7,252
R
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.


Link Copied to Clipboard