suddenly the script window started echoing all executed commands. For example when closing a project it echoes all Origin labtalk commands executed. Or when I execute a script using run.section it echoes all executed script lines.
Any ideas how to turn that off (and on again in case I ever want to see what origin does) ?
The system variable ECHO controls this. From the Origin help system (ver 6.1) I have copied the following text (searched index using 'echo') :
"You can change the value of the echo variable to instruct Origin to echo different types of scripts to the Script window. For example, you can set echo=1 to show any script that generates an error, or set echo=7 to display all scripts that are executed. During normal operation, echo=0."
To change the echo variable open the script window and and just type
Echo=7 (enter)
((enter) means press the enter-key) and the value is set, or you can change it during a script so you can see only the part of the code you like.
I'd start by opening the script files that are in use when this happens in a text editor and searching for the word "echo". (CodeBuilder works great for searching if you have Origin 7.0.) Perhaps you used the word in a comment and the comment identifer was removed by mistake. Or maybe you used echo as a variable name.
If nothing surfaces along that line I'd look closely for labtalk command statements that don't end with a semicolon. Missing semicolons can often produce unpredictable results.
If the reason is still not apparent and you're scripts are relatively short, you can post or provide a link to them here and maybe one of us will spot the problem.