Replying to PM here. As I mentioned before, I prefer to have this kind of question in the public forum.
Is this the right way:
cli:execute("!return mc:cmdwait('call set_tv96_direct(768) set_sv96(384)')")
I think it's valid syntax, if that's what you mean. Note the 768 and 384 were just numbers off the top of my head, they should be whatever APEX96 values you want.
In the CLI, ! means execute Lua code. So in general, cli:execute('!whatever()') is redundant. You can just call whatever() in your own code.
The return in an ! command causes the results to be printed, so if you want that when calling the code directly, you'll have to do it yourself.
Error handling is also slightly different, since the CLI will catch errors and print the result.
if so , my camera does not respond
What do you mean by "does not respond"? Does the camera freeze, or the settings are not used? Or ...?
The cli:execute should return some status value, as should the underlying mc:cmdwait. You should make a habit of checking or displaying the status values, especially if the code doesn't do what you expect.