DO11: access template arguments in a user command

Hi Leo,

I'm trying to access the argument of a user command defined as a DO11 script function in vbscript.

I've created a user command named app and I defined a template with a test argument

In the command's OnClick handler (which I presume is the function triggered when I run the command), I'm trying to access the argument passed with the command.

Eg: I'm running app teststring

And in the user command I expect to find the test argument (defined in the template) in the ClickData.func.args.test but I receive an error instead.

Can you help me with some guidance about the method to access the argument? Thanks in advance


Interesting question. This is not currently supported. The "official" way to add a command based on a script is via a script-add in, which does let you specify a command line template.

I'll put this on the list to look at because I can't think of a good reason why this shouldn't work, other than that we never envisaged someone would want to add a script command via a user command.

This will be fixed in the next beta.

I'll give it a go as I see the beta was immediately pushed
Cheers for that

my bad.. i was mislead by the date and a different fix in the latest beta.
will wait for the next beta