I am trying to write a user script that accepts arguments. From the manual, I see:
When I attempt to run this script in the Console window with
I'm running version 3.26f on Windows 10.
I've tried to change the command varying the argument types and have even specified seven arguments to no avail. Does anyone out there have an example of how to specify a user script with arguments?
I defined a dumb function as:Segger wrote:
7.9.9.1 Script.Exec
Executes a project file script function. The command currently only supports script functions
with void parameter or with up to seven arguments of integer type.
Prototype
int Script.Exec(const char* sFuncName, __int64 Para1, __int64 Para2,..);
When I attempt to run this script in the Console window with
Script.Exec("command_with_arg", 123)
, it crashes and shows me a window saying "An unexpected exception occurred and Ozone needs to close." If I run the script with no arguments, it doesn't seem to execute the LogHex command, but it doesn't crash.I'm running version 3.26f on Windows 10.
I've tried to change the command varying the argument types and have even specified seven arguments to no avail. Does anyone out there have an example of how to specify a user script with arguments?