Hi Diego,
When an LK script changes the value of the 'batt_type' variable, it triggers a user interface event that displays the prompt asking about updating defaults. Unfortunately, it is not possible to prevent the prompt from appearing. In this case, the prompt sets the value of 'update_default', which you could set with the LK script (0=no, 1=yes), but that does not prevent the event from being triggered, so the prompt still appears.
I'm not sure I understand your second question, but here are two answers:
1. From the SAM user interface, you can press the F-11 key to run all of the cases in a file so you don't have to go to each case and click the Simulate button.
2. From an LK script, you can use the list_case() and active_case() functions to list the cases in a file and switch between them. For example:
cases = list_cases();
for ( i=0; i<#cases; i++ )
{
active_case( cases[i] );
simulate();
}
Best regards,
Paul.