Script Shell. How to repeat last command? Variable scope
Posted: Sat Feb 17, 2018 9:11 am
Script Shell seems to be a very powerful tool. But I have some doubts about it:
Thank you. Best regards!
David
- 1.- Is there some way to get last line entered? It usually happens to me that I want to rewrite last command with some little change, but then I have to rewrite the whole line again. In some terminals you can do that with up arrow; I saw in QCAD Script Shell this works in a different way.
2.- I'm trying to use Script Shell to define or modify variables directly in QCAD interface. I use that variables in scripts located in /scripts/ Misc/Examples/LayerExamples. I cannot see any effect on that variables and their scripts. For example, I have a script that defines Wall variable as "Abc"; if I change the value of variable Wall in QCAD Script Shell (Wall="Bcd"; for example), and then I Run Script that contains variable Wall inside, I cannot see any change on the result; Wall is still "Abc" for this script effects.
Thank you. Best regards!
David