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.